crsuzh / ReplicationSuccess

R package for Design and Analysis of Replication Studies
https://crsuzh.github.io/ReplicationSuccess/
1 stars 0 forks source link

vignette build error #63

Closed florafauna closed 3 years ago

florafauna commented 3 years ago

In a99388858101a38d60196fb43520383b92fd2d30 running the command for the windowns check Rscript -e 'devtools::check_win_devel()' produces the error below. Apparently it deletes the vignette files inst/doc/ReplicationSuccess.Rnw, inst/doc/ReplicationSuccess.Rnw, and inst/doc/ReplicationSuccess.pdf and is not able to build them from the vignettes directory.

(base) X2 git/ReplicationSuccess Rscript -e 'devtools::check_win_devel()'
Building windows version of ReplicationSuccess (0.2) for R-devel with win-builder.r-project.org.

✔  checking for file ‘/home/fl/git/ReplicationSuccess/DESCRIPTION’ ...
─  preparing ‘ReplicationSuccess’:
✔  checking DESCRIPTION meta-information ...
─  installing the package to process help pages
         -----------------------------------
─  installing *source* package ‘ReplicationSuccess’ ...
   ** using staged installation
   ** R
   ** data
   *** moving datasets to lazyload DB
   ** inst
   ** byte-compile and prepare package for lazy loading
   ** help
   *** installing help indices
   ** building package indices
   ** installing vignettes
   Warning in file(con, "w") :
     cannot open file '/tmp/RtmpDkrarM/Rinste7281349f1c8/00LOCK-ReplicationSuccess/00new/ReplicationSuccess/doc/index.html': No such file or directory
   Error in file(con, "w") : cannot open the connection
   ERROR: installing vignettes failed
─  removing ‘/tmp/RtmpDkrarM/Rinste7281349f1c8/ReplicationSuccess’
         -----------------------------------
   ERROR: package installation failed

Error: System command 'R' failed, exit status: 1, stdout + stderr:
E> * checking for file ‘/home/fl/git/ReplicationSuccess/DESCRIPTION’ ... OK
E> * preparing ‘ReplicationSuccess’:
E> * checking DESCRIPTION meta-information ... OK
E> * installing the package to process help pages
E>       -----------------------------------
E> * installing *source* package ‘ReplicationSuccess’ ...
E> ** using staged installation
E> ** R
E> ** data
E> *** moving datasets to lazyload DB
E> ** inst
E> ** byte-compile and prepare package for lazy loading
E> ** help
E> *** installing help indices
E> ** building package indices
E> ** installing vignettes
E> Warning in file(con, "w") :
E>   cannot open file '/tmp/RtmpDkrarM/Rinste7281349f1c8/00LOCK-ReplicationSuccess/00new/ReplicationSuccess/doc/index.html': No such file or directory
E> Error in file(con, "w") : cannot open the connection
E> ERROR: installing vignettes failed
E> * removing ‘/tmp/RtmpDkrarM/Rinste7281349f1c8/ReplicationSuccess’
E>       -----------------------------------
E> ERROR: package installation failed

 Stack trace:

 1. devtools::check_win_devel()
 2. devtools:::check_win(pkg = pkg, version = "R-devel", args = args,  ...
 3. pkgbuild::build(pkg$path, tempdir(), args = args, manual = manual,  ...
 4. withr::with_temp_libpaths(rcmd_build_tools(options$cmd, c(options$path,  ...
 5. base:::force(code)
 6. pkgbuild:::rcmd_build_tools(options$cmd, c(options$path, options$args),  ...
 7. pkgbuild:::with_build_tools(callr::rcmd_safe(..., env = env,  ...
 8. callr::rcmd_safe(..., env = env, spinner = FALSE, show = FALSE,  ...
 9. callr:::run_r(options)
 10. base:::with(options, with_envvar(env, do.call(processx::run,  ...
 11. base:::with.default(options, with_envvar(env, do.call(processx::run,  ...
 12. base:::eval(substitute(expr), data, enclos = parent.frame())
 13. base:::eval(substitute(expr), data, enclos = parent.frame())
 14. callr:::with_envvar(env, do.call(processx::run, c(list(bin, args = real_cmdarg ...
 15. base:::force(code)
 16. base:::do.call(processx::run, c(list(bin, args = real_cmdargs,  ...
 17. (function (command = NULL, args = character(), error_on_status = TRUE,  ...
 18. throw(new_process_error(res, call = sys.call(), echo = echo,  ...

 x System command 'R' failed, exit status: 1, stdout + stderr:
E> * checking for file ‘/home/fl/git/ReplicationSuccess/DESCRIPTION’ ... OK
E> * preparing ‘ReplicationSuccess’:
E> * checking DESCRIPTION meta-information ... OK
E> * installing the package to process help pages
E>       -----------------------------------
E> * installing *source* package ‘ReplicationSuccess’ ...
E> ** using staged installation
E> ** R
E> ** data
E> *** moving datasets to lazyload DB
E> ** inst
E> ** byte-compile and prepare package for lazy loading
E> ** help
E> *** installing help indices
E> ** building package indices
E> ** installing vignettes
E> Warning in file(con, "w") :
E>   cannot open file '/tmp/RtmpDkrarM/Rinste7281349f1c8/00LOCK-ReplicationSuccess/00new/ReplicationSuccess/doc/index.html': No such file or directory
E> Error in file(con, "w") : cannot open the connection
E> ERROR: installing vignettes failed
E> * removing ‘/tmp/RtmpDkrarM/Rinste7281349f1c8/ReplicationSuccess’
E>       -----------------------------------
E> ERROR: package installation failed 

Execution halted

(base) X2 git/ReplicationSuccess git s
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
    deleted:    inst/doc/ReplicationSuccess.R
    deleted:    inst/doc/ReplicationSuccess.Rnw
    deleted:    inst/doc/ReplicationSuccess.pdf

no changes added to commit (use "git add" and/or "git commit -a")
florafauna commented 3 years ago

deleting the build folder solved the problem. 11e4fd6e24a415c646fc415e73a33638caec9ba9