Questions tagged [renv]
129 questions
0
votes
1 answer
R: renv::restore() throwing strange error messages ("character(0)")
I'm trying to get renv to run, in order to restore the libraries of a project on a different system.
Here's my workflow:
[On MacOS, R 3.6.3]: Created an RStudio project with 2 script files that contain a few library calls (tidyverse, ggpubr, one…

Jan
- 103
- 1
- 7
0
votes
2 answers
R: Suppressing renv project startup message
Typically, when starting up an renv project, one gets a message that looks something like this:
* Project '~/path/to/project' loaded. [renv 0.10.0]
I am trying to suppress this message, particularly when non-interactively running a script from this…

BroVic
- 979
- 9
- 26
0
votes
0 answers
launching renv::activate() with RMarkdown causes R to crash
I have a r-markdown chunk with this command line:
renv::activate(file.path(proj_root, "my_folder"))
When I run this line alone in the console or with ctrl+enter, it works perfectly.
But when I try the Run current chunk or Run all chunks above…

Anoikis
- 105
- 1
- 13
0
votes
1 answer
Automate configuration options for github install with renv
I am trying to include a development version package in a project with renv. However the package requires the following install options
install_github("james-thorson/VAST", INSTALL_opts="--no-staged-install")
I see in the renv documentation that it…

DanO
- 600
- 3
- 11
0
votes
1 answer
Collaborating in R: renv with different versions of R?
I am using renv to collaborate on an R projects with my colleagues. This seems to work qute nicely as soon as everyone uses the same version of R. Is this really a mandotory prerequisite or is there a possibility to still collaborate using different…

manumanul
- 35
- 5
0
votes
1 answer
Packrat::restore() for system dependencies
I was developing a shiny-app on a Windows machine in Rstudio. Now I need to develop it on a Linux machine and later on will need to deploy it on a server. Because of the need to run the app across platforms, I was looking into some environment…

Andy Liang
- 3
- 1
0
votes
1 answer
What is the purpose of the .r-version
I am working with an RStudio project and using renv for package control. In my renv.lock file, the version of R I am using is 4.0.2, and that indeed is the version of R being used by the project. However, I have a file in the root of project,…

Obromios
- 15,408
- 15
- 72
- 127
0
votes
0 answers
Unable to load installed packages in shiny server using renv
I have several large shiny apps which perfectly work on my local computer, but do not on my shiny server as it seems impossible to load most of the installed packages.
I work with the package renv since I want to avoid dependency problems between…

manumanul
- 35
- 5
0
votes
1 answer
How to Manage R Packages given Windows 255 file path limit, e.g. checkpoint and Rcpp?
So I was trying to install Rcpp using the checkpoint package (with a March 1st 2020 date).
Most of my packages were fine, but Rcpp specifically makes a lot of temporary directories that it then deletes, for example:…

Carlos Mercado
- 165
- 1
- 5