Hi. I am trying to build a package (specifically a learnr tutorial). I am getting this error when I press "install and restart". Anyone know what I should do? This is on Windows.
installing to library 'C:/Users/willi/Documents/R/win-library/4.1'
installing source package 'tutorialR4DS' ...
** using staged installation
** R
Error in parse(outFile) : attempt to use zero-length variable name
ERROR: unable to collate and parse R files for package 'tutorialR4DS'
Is the source of your package public? In particular is there a collate field in the DESCRIPTION, while there is no R file at all? (if the package only contains a learnr tutorial I suppose there is no R file).
Are you able to build and install other packages (if you create a minimal R package via e.g. usethis::create_package()) or is the problem specifically hapening with your tutorial package?
installing to library 'C:/Users/willi/Documents/R/win-library/4.1'
installing source package 'TidyverseTutorials' ...
** using staged installation
No man pages found in package 'TidyverseTutorials'
** inst
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
DONE (TidyverseTutorials)
And it appears in my list of tutorials in the tutorial pane of RStudio.
Thanks again.
By the way, if you want to try it out, it is available from this:
devtools::install_github("DataScienceProjectsJapan/TidyverseTutorials")
learnr::run_tutorial("learnrexs", "TidyverseTutorials")