Questions tagged [renv]
129 questions
1
vote
1 answer
Missing fonts in R and RMarkdown after compiling R
I installed an older version of R (4.0.2) from source on my computer following the instruction on https://support.rstudio.com/hc/en-us/articles/215488098-Installing-multiple-versions-of-R-on-Linux and I work with rmarkdown and knitr packages in…

Anoikis
- 105
- 1
- 13
1
vote
1 answer
renv::restore() failed to retrieve older package version
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…

AnjaM
- 2,941
- 8
- 39
- 62
1
vote
1 answer
renv keeps telling that packages are not used while they are
I am using renv to make my project reproducible.
However, I have two packages needed that were not automatically taken in account when using renv::snapshot() (the rnaturalearthdata and gifski packages which are 2 dependencies of rnaturalearth and…

FrsLry
- 348
- 4
- 19
1
vote
2 answers
How to change R repository CRAN from renv.lock to get packages from an internal/corporate repository?
I will let an R project run on a data center and the team working there has no access to the Internet, so they will have to download the R libraries from an internal repository (on their Intranet) where all the packages are hosted.
It is possible…

lo labs
- 89
- 13
1
vote
2 answers
Why are objects masked after running library(renv) in R?
I'm following this steps, like in this workflow here:
renv::init()
working as usual and installing new packages
renv::snapshot()
The problem I'm facing is while running library(renv), many functions are been masked, like load, so I have to re-mask…

lo labs
- 89
- 13
1
vote
1 answer
does renv really install packages isolated from r base environment?
I have a project which I created via rstudio using the GUI and hitting the (New Project) button. Here are some snapshots of how i created a project with renv. My OS is Ubuntu 20.04 LTS.
So far so good, renv has created the usual suspected files…

moth
- 1,833
- 12
- 29
1
vote
1 answer
renv - manually overwrite package version in lock file
I cannot fully restore one package in renv lock file, but I am able to install different version of this package. So I wonder if I can manually overwrite package version in lock file. Do I just need to replace version number? Should I change hash as…

user1700890
- 7,144
- 18
- 87
- 183
1
vote
0 answers
Initializing renv causes RStudio to collapse
I recently installed both R and RStudio on a new computer, and wanted to create an RProject. I used to use the package renv before and it worked pretty well so far.
However, when I tried to initialize the renv library it first created all the…

manumanul
- 35
- 5
1
vote
1 answer
How to manage multiple versions of R from the shell in a similar manner to Python and Pyenv
For Python I'm able to use Pyenv within the terminal to install and manage different python versions, from which I can create virtual environments for use in projects.
With R I am able to use renv to create an R environment, but I don't know how to…

baxx
- 3,956
- 6
- 37
- 75
1
vote
0 answers
Renv is restarting my pc prompting a blue screen when i try to remove renv folder
I created a project on Rstudio and and tried to delete all the folders created by the project. I also created an renv (r virtual enviroment) and when I tried to delete that folder my system is prompting a blue windows screen. I tried to…

moth
- 1,833
- 12
- 29
1
vote
1 answer
renv and git interaction R
I am trying to get better understanding how renv package in R works and how it interacts with git. Here are my questions
Assume I have master and a couple git branches in my R projects for each (master and branches) I would like to use different…

user1700890
- 7,144
- 18
- 87
- 183
1
vote
0 answers
renv::restore() is nail-bitingly slow
I am trying out the renv package for the first time.
I took an existing project I manage with packrat, removed the .Rprofile and the packrat dir (I was happy starting from scratch)
I added a local work repo using options, and then ran renv::init().…

Sirius
- 5,224
- 2
- 14
- 21
1
vote
0 answers
Anaconda R environment can't access libraries/packages when in R project of github repository
I have an R environment in Anaconda with all the packages I need and use. I added a private repository from github onto my pc using the conda CLI. The project files includes an renv folder as well a .Rproj file. When I try to open any of the R…

Aryan poonacha
- 451
- 2
- 4
- 15
1
vote
1 answer
Reproducibility problems with Rmarkdown and Renv
I recently noticed that the same R markdown document was generating different plots when being run in different conditions (eg. different projects). As a toy example, consider the following document:
---
title: "Example"
output:
…

elcortegano
- 2,444
- 11
- 40
- 58
1
vote
2 answers
Rscript is not recognising libraries when using renv
I am working on Mac OSX, using v3.6.3 of R and using renv. In Rstudio and R, I can load the libraries of my installed packages, e.g library(ggplot2) works. However when I run a script using Rscript I get the message
Error in library(ggplot2) :…

Obromios
- 15,408
- 15
- 72
- 127