I tried to install BreakoutDetection offline per https://stackoverflow.com/questions/33179156/installing-a-package-offline-from-github and got error:
source <- devtools:::source_pkg("/Users/abc/BreakoutDetection-master")
install(source)
Error in eapply(ns_env(pkg), force, all.names = TRUE) :
cannot open file '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/BreakoutDetection/R/BreakoutDetection.rdb': No such file or directory
In addition: Warning message:
In eapply(ns_env(pkg), force, all.names = TRUE) :
restarting interrupted promise evaluation
Any idea? Thanks.
cderv
August 28, 2018, 6:04am
2
For offline installation I would:
Download the tar.gz file from github with another environment
use devtools::install_local()
on this archive or on the directory containing the source.
does devtools::install_local("/Users/abc/BreakoutDetection-master")
works ?
jiangok2006:
source <-
Advice: do not use source
as a variable name has it is a base R function name. It could lead to errors.
1 Like
Thanks for the reply. Here is the result:
devtools::install_local("/Users/abc/BreakoutDetection-master")
Installation failed: cannot open file '/Library/Frameworks/R.framework/Versions/3.5/Resources/library/BreakoutDetection/R/BreakoutDetection.rdb': No such file or directory
Warning message:
In eapply(ns_env(pkg), force, all.names = TRUE) :
restarting interrupted promise evaluation