I’ve had few enquires about how to install the
summarizer package on a server without internet access, such as the NHS Safe Havens.
- Uploadsummarizer-master.zip from here to server.
- Run this:
source = devtools:::source_pkg(“
As per comments,
devtools::install_local() has previously failed, but may now also work directly.
4 Replies to “Install github package on safe haven server”
Any reason not to just use `devtools::install_local(…)` instead? The `source_pkg` function is not exported from devtools, so it’s not intended for direct use (and in this case, not necessary).
It is/was a workaround for `install_local()` which previously failed.
Here and else where: https://github.com/r-lib/devtools/issues/1251
Perhaps our previous issue is now resolved. Many thanks.
Is there some problem or is it just me?
I tried to run
but R says:
“Downloading GitHub repo ewenharrison/[email protected]
from URL https://api.github.com/repos/ewenharrison/finalfit/zipball/master
“C:/Program Files/R/R-34~1.1/bin/x64/R” –no-site-file –no-environ –no-save \
–no-restore –quiet CMD INSTALL \
–library=”C:/Program Files/R/R-3.4.1/library” –install-tests
Komentoa C:\Program ei tunnistettu sis„iseksi tai ulkoiseksi komennoksi,
suoritettavaksi ohjelmaksi tai komentojonotiedostoksi.
Installation failed: Command failed (1)
Second, I uploaded the zip-file and unzipped it.
I tried to run
source = devtools:::source_pkg(“summarizer-master”)
> source = devtools:::source_pkg(“summarizer-master”)
Error: Does not appear to be an R package (no DESCRIPTION)
Error: `path` must be a string.”
What I am doing wrong? Please help me.
The path to R looks weird, is it really in a folder “/R-34~1.1/“
With the second method, you need to include the path to the downloaded file in the source-pkg command.
Comments are closed.