Questions tagged [renv]
129 questions
1
vote
1 answer
Renv fails to compile packages but install.packages() works fine
I run into the following problem: everytime I would like to install the package "class" through renv specific commands, e.g. renv::restore() or renv::install("class@7.3-20"), I get an error message. However, if I run…

Methamortix
- 70
- 10
1
vote
1 answer
testthat and roxygen for analytical projects that are not packages
I try to find out how I can use some devtools features like testthat, roxygen etc., when I work with an R project that is not a package.
In the "R Packages (2e)" book, there are good examples how I can use all this features. But when I try to use…

ds_col
- 129
- 10
1
vote
0 answers
Installing packages from source in renv
I need to install a package from source in renv. I can install packages from binaries in renv no problem. I can also install packages from both source & binary outside renv no problem. I am doing this within Rstudio
The error (below) makes me think…

user3111174
- 121
- 1
- 1
- 5
1
vote
1 answer
Trouble installing packages from packrat log file
I am trying to work with some code that was written with R/3.6* and its packages. See the lock file at https://gist.github.com/khanna7/cb5791bdf65df55d320fd098d6093b1b. The main package I need, from the lock file, is
Package: ergm
Source:…

dapple-putt-poultry
- 103
- 6
1
vote
1 answer
Updating renv lock file after installing a package
I just did renv::install("lme4") followed by renv::snapshot(). The package installed successfully, and the lockfile is updated:
Lockfile written to '.../renv.lock'
but there is no "lme" keyword in this lockfile.
Shouldn't the lockfile have updated…

dapple-putt-poultry
- 103
- 6
1
vote
1 answer
renv: install R packages without help pages & Co
With R's install.packages(), it is possible to exclude certain parts of a package, which are only helpful during development - such as help pages and example data - to yield lightweight runtime environments (e.g. smaller Docker…

bathyscapher
- 1,615
- 1
- 13
- 18
1
vote
0 answers
devtools::check failing to find package installed in renv user cache
I'm using renv for my private package (mdTools). devtools::install() works, but when I devtools::check(), it fails to find the DBI package, which is installed in my renv user cache.
devtools::check() error message
checking whether the package can be…

David Lucey
- 252
- 3
- 9
1
vote
1 answer
R: How to specify versions of dependencies with Renv
I currently experiment with renv to ensure that all of my collegues use the same version of packages during development. However, there is one thing I don't know how to achiev to far.
Let's say there is a package A that requires a specific version…

Ai4l2s
- 525
- 2
- 9
1
vote
4 answers
R - renv suddently broke and now I can't download any packages
I am working on a project and everything was working fine, but all of a sudden I can't seem to download any other packages I've tracked the issue to renv and found someone else who had the same problem. However, the solution offered is only a…

cach1
- 105
- 8
1
vote
1 answer
install_version breaks symlinks in the renv library
I use renv to manage R package dependencies. The global cache works great for all packages that are installed with install.packages command; however, if I install the same package with devtools::install_version command it only installs it locally.…

Naeem Khoshnevis
- 2,001
- 4
- 18
- 30
1
vote
0 answers
Renv and Java: "Error in rJava::.jinit() : Unable to create a Java class loader"
I have a script that works perfectly when I'm not using Renv. However, when running it in a project with Renv enabled, the last command line returns the following message:
> r5r_core <- setup_r5(data_path = data_path, verbose = FALSE)
Error in…

Igor
- 145
- 8
1
vote
1 answer
How to create "locked" environment for testing things in R
I know this it at the edge of being/not being a coding question, but I still try my luck.
When creating my own R package, I want to test it in a certain "simulated" user environment (environment in the sense of packages installed etc., not in the R…

deschen
- 10,012
- 3
- 27
- 50
1
vote
1 answer
renv::status() returns Error in seq_len(length(splat) - 1) :
I ran
renv::status()
and got back:
Error in seq_len(length(splat) - 1) :
argument must be coercible to non-negative integer
I tried traceback() and got back:
f(n[[i]], x[[i]], ...)
7: FUN(X[[i]], ...)
6: lapply(idx, callback)
5:…

user1700890
- 7,144
- 18
- 87
- 183
1
vote
1 answer
Why renv in docker is not installing and loading packages?
This is the first time I'm using Docker. I have tried a few times but this is the first time where I'm containerizing the project. The project generates reports using latex and officer. However, after building the container and running the image,…

Kuni
- 817
- 1
- 9
- 24
1
vote
1 answer
R: renv within R notebook-scoped (Rmd) workflows
I am looking for a way to make my R notebook-centric workflow be more reproducible and subsequently more easily containerized with Docker. For my medium-sized data analysis projects, I work with a very simple structure: a folder with an associated…

Claudiu Papasteri
- 2,469
- 1
- 17
- 30