I am trying to install some R packages. Unfortunately the machine does not have access to the internet and so I have to install them offline.
More specifically I am trying to install the stringi
package (https://cran.r-project.org/web/packages/stringi/index.html).
These are the steps I am following:
Download the package (from a machine which has an internet connection) from https://cran.r-project.org/src/contrib/stringi_1.5.3.tar.gz
Create a folder on the machine I have R to act as a repo
Run this piece of code:
library(tools) write_PACKAGES("./R_repo/") install.packages("stringi", contriburl="file:./R_repo")
The installation actually starts and passes all the checks. The probelm is that it breaks when, as part of the process, is trying to download additional files.
More specifically:
trying URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL
'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip'
trying URL 'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL
'https://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip'
trying URL 'http://raw.githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL
'http://raw.githubusercontent.com/gagolews/stringi/master/src/icu61/data/icudt61l.zip'
trying URL 'http://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL
'http://raw.githubusercontent.com/gagolews/stringi/master/src/icu55/data/icudt61l.zip'
trying URL 'http://www.ibspan.waw.pl/~gagolews/stringi/icudt61l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL
'http://www.ibspan.waw.pl/~gagolews/stringi/icudt61l.zip'
trying URL 'http://www.gagolewski.com/software/stringi/icudt61l.zip'
Error in download.file(paste(href, fname, sep = ""), icudtzipfname, mode = "wb"): cannot open URL
'http://www.gagolewski.com/software/stringi/icudt61l.zip'
icudt download failed
Error: Stopping on error
Is there a way to download these additional files manually and saved them on the machine, so during the installation process it does not have to fetch them on the internet?
Thank you, Marco