Package building and check() fails
tzerk opened this issue · 1 comments
tzerk commented
Building through RStudio or installing it via devtools::install_github()
produces the error below. It is somehow related to the Vignettes or rather how they are (supposed to be) build. It fails even when using build_vignettes = FALSE
.
> devtools::install_github("r-lum/rlummodel", build_vignettes = FALSE)
Downloading GitHub repo r-lum/rlummodel@master
from URL https://api.github.com/repos/r-lum/rlummodel/zipball/master
Installing RLumModel
"C:/PROGRA~1/R/R-devel/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:/Users/C/AppData/Local/Temp/RtmpSAUkzy/devtools213057f1616f/R-Lum-RLumModel-e80a9fc" \
--library="C:/Users/C/Documents/R/win-library/3.4" --install-tests
* installing *source* package 'RLumModel' ...
** R
** data
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
Warning in file(con, "w") :
cannot open file 'C:/Users/C/Documents/R/win-library/3.4/RLumModel/doc/index.html': No such file or directory
Error in file(con, "w") : cannot open the connection
ERROR: installing vignettes failed
* removing 'C:/Users/C/Documents/R/win-library/3.4/RLumModel'
* restoring previous 'C:/Users/C/Documents/R/win-library/3.4/RLumModel'
Error: Command failed (1)
JohannesFriedrich commented
Issue solved: There was a folder "build" in the repository. This folder is not necessary so I removed it and the issue was solved.