install BreakoutDetection offline

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.

For offline installation I would:

  1. Download the tar.gz file from github with another environment
  2. use devtools::install_local() on this archive or on the directory containing the source.

does devtools::install_local("/Users/abc/BreakoutDetection-master") works ?

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