Dear Community,
I am currently testing the RStudio Server Package Manager but struggling to retain the fetched packages on the server. RSPM does not seem to keep any packages.
For exemple, I download 'shiny' on RSW using my RSPM. Everything work fine, I have 'shiny' on my RSW user library. Then I remove the library of the user. Shutdown the internet connection on RSPM. Try to redownload 'shiny' on RSW using my RSPM. Fail.
In my RSPM config file, I only have set (default value for the rest):
RetainFetchedPackages = yes
Packages (at least some) tar.gz are stored in /var/lib/rstudio-pm/cran but I am not able to install them without internet.
When Internet access is cut and try to catch the package using wget, I get the following:
sudo wget http://0.0.0.0:4242/prod-cran/latest/src/contrib/shiny_1.7.0.tar.gz
--2021-09-27 07:06:42-- http://0.0.0.0:4242/prod-cran/latest/src/contrib/shiny_1.7.0.tar.gz
Connecting to 0.0.0.0:4242... connected.
HTTP request sent, awaiting response...
Does anyone know what I am missing?
My goal is to use as minimum bandwidth as possible and I have enough disk storage. But I do not want to use the air-gapped solution as it does not work for Python.
Thank you!
RStudio Package Manager Client Version: 1.2.2.1-17; Built on May 13, 2021
RStudio Package Manager Server Version: 1.2.2.1-17; Built on May 13, 2021
> install.packages("shiny")
Installing package into ‘/home/user1/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘fs’, ‘rappdirs’, ‘Rcpp’, ‘digest’, ‘base64enc’, ‘magrittr’, ‘sass’, ‘jquerylib’, ‘httpuv’, ‘mime’, ‘jsonlite’, ‘xtable’, ‘fontawesome’, ‘htmltools’, ‘R6’, ‘sourcetools’, ‘later’, ‘promises’, ‘crayon’, ‘rlang’, ‘fastmap’, ‘withr’, ‘commonmark’, ‘glue’, ‘bslib’, ‘cachem’, ‘ellipsis’, ‘lifecycle’
trying URL 'http://0.0.0.0:4242/prod-cran/latest/src/contrib/fs_1.5.0.tar.gz'
Warning in install.packages :
cannot open URL 'http://0.0.0.0:4242/prod-cran/latest/src/contrib/fs_1.5.0.tar.gz': HTTP status was '500 Internal Server Error'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'http://0.0.0.0:4242/prod-cran/latest/src/contrib/fs_1.5.0.tar.gz'
Warning in install.packages :
download of package ‘fs’ failed
[... for all packages ...]