I just started a new package and when i tried to install it at work with
devtools::install() the addin is not listed in the "addins list" in Rstudio.
From what i see, it might not only be a problem in my package but is also depend on the installation method i choose:
Reprex: devtools::install_github() works:
Reprex2: devtools::install() does not:
remove.packages("code2r") tmp <- tempfile() download.file(url = "https://github.com/Timag/code2R/archive/master.zip", destfile = tmp) unzip(tmp, exdir = "code2r") devtools::install("code2r/code2r-master") library(code2r)
In the second step, the error:
Error in eapply(pkgload::ns_env(pkg$package), force, all.names = TRUE) :
cannot open file 'C:/Users/User11/Documents/R/win-library/3.6/code2r/R/code2r.rdb': No such file or directory
might appear which goes away after restarting RStudio.
I posted the question first here: https://github.com/r-lib/devtools/issues/2214 and as suggested
by Jim Hester i moved it to here. If there are problems with reproducibility or if i oversaw something obvious, just let me know.
I would like to have
devtools::install() working as well, as
install_github() is not whitelisted in some corporate settings.