Repository navigation
Conversation
Translated to Rmd
Translated to Rmd
…a list of functions.
The slot @log was deprecated and not in use for at least 10 years. We met a decision to permanently remove it from hyperSpec, and thus it should be not be mentioned in the vignette as well.
… columns, respectively."
Removed comment as well
Merge pull request #1 from ximeg/translate_vignettes
error_on = "error"
Previously these were the contents of folder "fileio" (Rnw vignettes).
|
By the way, I'm not sure if it worth checking each commit that is related to vignettes and GitHub Actions setup files as there was some experimentation and moving back and forth. The most radical changes were in commit c677f50 "Changed structure of package" an onwards. |
| *.idx | ||
| *.ind | ||
|
|
||
| hyperSpec/NAMESPACE |
There was a problem hiding this comment.
NAMESPACE and man/*.Rd are auto-generated by roxygenize() and they are therefore redundant, i.e. the primary source is not there but in the Roxygen comments.
Can they stay ignored and instead be generated also during the actions?
There was a problem hiding this comment.
At some point, there were problems with pkgdown and ignored "man/*.Rd". I will check on a separate branch if these files can stay Git-ignored.
There was a problem hiding this comment.
-
man/*.Rdcan be safely git-ignored: R-CMD-check and pkgdown building are successful. -
Unfortunately, if both NAMESPACE and
vignettes/*.htmlfiles are missing, step of Roxigenation (devtools::document()) fails. There is the result on my local machine:

And the results on GH Actions
And if I rundocument()function several times in console, I get an additional warning:

Does the last warning give any helpful information for you, @cbeleites?I have to run Roxygenation + building steps several times locally before the process is successful. And I did not manage to solve this issue for the GitHub Actions setup is NAMESPACE is missing. This might be a bug in
devtools::document()or somehow related hyperSpec (e.g., non standard usage of testthat).
But if NAMESPACE file is present (even incomplete), the issue disappears, R-CMD-check passes (this is the same link as in point 1).
Would it be ok if we Git-ignored man/*.Rd but tracked changes in NAMESPACE?
|
I think this pull request would put the spectra files that are currently under (when checking, I found that some of the spectra files are accidentally under normal |
|
I have no experience with
Why do we need this? Is it for |
|
yes - I quickly tried to find out how to move files in But directory |
|
I don't know whether you did anything really wrong. It may just be caused by your github account not having |
From "https://git-scm.com/docs/gitattributes": > The rules by which the pattern matches paths are the same as in .gitignore files [...], with a few exceptions: > [...] > - patterns that match a directory do not recursively match paths inside that directory (so using the trailing-slash path/ syntax is pointless in an attributes file; use path/** instead)
|
@cbeleites, I'm not sure if it is serious... I was trying the GIT LFS commands from this section https://github.com/git-lfs/git-lfs#example-usage After I tried the following command, I was not able to push or pull any commits anymore due to unmatching history of commits (800+ commits appeared to push and to pull). The output in Terminal: Now I think that command affected all local and remote branches of repository and I shouldn't have used Now here I found that: On my machine, I solved the issue by deleting (renaming) current folder with hyperSpec project and cloning it again from the remote. Sorry for this. I didn't expect that the code could affect anything on other branches than |
|
Related to commit 54ec4d5 ("Put directory "raw-data" under LFS"):
|
@cbeleites, it was not as straightforward as I thought, but after 2 hours of trial and error, finally, I managed to change the working directory that is used for R-CMD-check and pkgdown on GitHub Actions. With these settings, we can keep both I will create a new pull request that, hopefully, will not remove the files from Git LFS (I won't touch the "./Vignettes" directory) and all my changes will go to "./hyperSpec" folder. Just before I move my changes to a new fork, we should decide what additional changes to this pull request are needed:
I also want to know if @bryanhanson has any uncommitted or not pushed changes to the branch |
|



This PR contains huge changes to the following areas:
UPDATE: partially replaced by PR Feature/131 Enable R-CMD-check on Git-Hub Actions #159.
Make is totally removed (Now package could be built by using tools that are integrated with RStudio (devtools, etc.)closesGet (mostly) rid ofmake#132).UPDATE: replaced by PR Feature/131 Enable R-CMD-check on Git-Hub Actions #159.
Datasets.a) the small datasets and dataset
chondroare converted to static versions. This addresses most of the issues Convert small data sets to "static" versions #137 (I checked the boxes in Convert small data sets to "static" versions #137 that are completed and others may be polished later).b) all raw datasets (and other contents of "fileio" folder, which was used to build
fileio.Rnwvignette) are moved to the "raw-data" folder which is.Rbuildignored. Only copies of raw data that are needed to buildfluandlaservignettes are copied toinst/extdatafolder. Now the files of the package (except the contents of the "raw-data" folder and most.gitignored files, e.g., the raw text data forchondrodataset) take about 5-6 MB on my PC.UPDATE: replaced by changes in PR Feature/78, 79, etc. Vignettes translated to R Markdown #147.
Vignettes:a) Vignettes are translated from Rnw to Rmd (taken from PR Feature/78, 79, etc. Vignettes translated to R Markdown #147) and Rnw files are removed (
closesTranslate vignettes fromSweavetoR Markdown#79). But further rearrangement of contents and polishing of other details are necessary.b) Some R code in
fileio.Rmdvignette is still temporarily disabled. I think it is more reasonable to continue working on this vignette when the package structure does not containmake.c) Vignettes are moved to the package's vignettes folder (
closesMove vignette *hyperSpec* #135,closesMove vignette *plotting* #136).d As Rnw files are removed I think fileio.Rnw chunk readcollapse has an error #119 gets not relevant so may be closed too.
UPDATE: replaced by changes in PR Feature/78, 79, etc. Vignettes translated to R Markdown #147.
On-line documentation.GitHub Actions are set to buildpkgdownwebsite (takes ~11 min.;closesFeature request: online documentation with pkgdown or similar #78) and somepkgdownconfiguration files are created. Later we will be able to customize the documentation even more.UPDATE: replaced by PR Feature/131 Enable R-CMD-check on Git-Hub Actions #159.
Continuous integration (CI).CI is enabled and R-CMD-check passes on:The whole R-CMD-check on this matrix of options takes ~ 14 minutes. This ensures that my changes do not break anything in the package (

closesUse Continuous Integration (CI) service to automatically check hyperSpec package #131). On my local machine, R-CMD-check returns only one issue related to folder sizes:data 2.0Mbis related tochondrodataset as it is almost this big. The newfauxCelldataset will solve this issue.doc 2.2Mbissue, but I think that this is related to large figures in current Rmd vignettes (the size could be fixed later).