Working with RStudio on a server within the company's network that has no connection to the internet (basically all ports are closed) I was installing packages by source so far. Until I realized that
install.packages actually works. I was puzzled. How does
install.packages achive this?
The documentation says
download.file to download the package zip.
For example, not surprisingly, both calls below return error messages like
cannot open connection / HTTP status was '403 Forbidden
readLines("https://cran.r-project.org") download.file( url = "https://cran.r-project.org/src/contrib/data.table_1.13.0.tar.gz", destfile = "D:/data.table_1.13.0.tar.gz" )
I'd like to know the parameters for the connection so that I can download data for other purposes my self with
download.file. I failed to find out myself with