I am using renv for a project where I need to use an old version of mongolite (version 1.0). I can install this version with remotes::install_version("mongolite", "1.0"). However, renv fails to install this package upon renv::restore(). I tried to insert explicite sources into the lock-file like this:
"mongolite": {
"Package": "mongolite",
"Version": "1.0.0",
"Source": "https://cran.rstudio.com/src/contrib/Archive/mongolite/mongolite_1.0.tar.gz"
}
(I also tried https://github.com/jeroen/mongolite/archive/refs/tags/v1.0.tar.gz). It just didn't work (Error: failed to retrieve package 'mongolite' ). I also tried to set Sys.setenv(RENV_DOWNLOAD_FILE_METHOD = getOption("download.file.method")) like suggested in the FAQ, but this didn't help either.
Is there anything else I could try?