@statquant_2 wrote:
Hello, I was giving a test at renv today.
I might be expecting something wrong with the package.
My use case would be the following:I create my own project, say tracked by git, I install renv, I do renv::init().
I start working I load some packages, I stop working I do renv::snapshot()
I commit and pushThen my colleague clone the git repo I have created.
when he starts R in this repo I would expect
- renv to be automatically installed*
- renv::activate() to be called
- all other packages to be installed*
I added * because I am not sure about something:
is the source of each package used stored within the project or even the library itself ? or is it merely information about the packages used that is stored so that the packages can be re-installed (remotely) ?
can I ship the compiled packages themselves so people would not have to re-install them ?
Finally I tried it and my coolegue got the following issue:
Failed to find installation of renv -- attempting to bootstrap...
- Downloading renv 0.8.2-19 ... Error in utils::download.file(url, destfile = destfile, mode = "wb", quiet = TRUE) :
cannot open URL 'https://api.github.com/repos/rstudio/renv/tarball/0.8.2-19'
In addition: Warning message:
In utils::download.file(url, destfile = destfile, mode = "wb", quiet = TRUE) :
cannot open URL 'https://codeload.github.com/rstudio/renv/legacy.tar.gz/0.8.2-19': HTTP status was '404 Not Found'
Warning message:
Failed to find an renv installation: the project will not be loaded.
Use
renv::activate()
to re-initialize the project.
Posts: 7
Participants: 4