Questions tagged [renv]
129 questions
0
votes
1 answer
Using Renv behind a proxy without password in plaintext
I'm working on R projects behind a proxy server, which is why I use the keyring library to store my proxy credentials and to authenticate on the proxy manually whenever it is required. This way, I don't need to write…

Ai4l2s
- 525
- 2
- 9
0
votes
1 answer
Cannot install Hmisc using renv: Installing Formula [1.2-4] ... FAILED
when trying to install Hmisc in R using renv I get the message underneath. Could somebody help me please?
I'm using:
R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics", with
RStudio 2022.02.3 Build 492, using a
Platform:…

menarest
- 3
- 4
0
votes
1 answer
I can't install the sf package when I use the renv package in a project
I started a new project in Rstudio and selected the option to use renv. The first thing I did was type the command install.packages('sf') and R returned the message below. How to proceed?
> install.packages('sf')
Error: package 'sf' is not…

Igor
- 145
- 8
0
votes
0 answers
Can't install packages with renv on docker container (rocker/verse:3.6.3): permission denied on staged install
I'm trying to use renv with docker using the rocker/verse:3.6.3 image. I get an error "permission denied" on package install upon moving files from staging to library directory. I tried to disable staged installation using both…

Joe Catin
- 33
- 3
0
votes
0 answers
ERROR: lazy loading failed for package 'dockerstats'
I have not been able to install the dockerstats package from github since I installed the renv package. when I run remotes::install_github("ColinFay/dockerstats") I receive this errors:
> remotes::install_github("ColinFay/dockerstats")
Downloading…

rezious
- 3
- 2
0
votes
1 answer
Where to use renv::snapshot() in the document
I am working on a replication file and am trying to figure out how to properly use "renv". I've read the documentation, but I'm still a bit confused on how to actualize this.
After initializing via
renv::init()
I know I upload packages and work as…

ZR8
- 131
- 1
- 9
0
votes
0 answers
How to fix an R environment variable in Windows 10
I have a student with a Windows 10 machine that has a bad path set for the R_LIBS_USER variable. I went into the R program directory and edited .Rprofile to set to R_LIBS_USER = "". That works until I am in a project using the renv package. renv…

itsMeInMiami
- 2,324
- 1
- 13
- 34
0
votes
1 answer
Problems installing older version of Bioconductor's mixOmics packages in R
I've spent the day trying to load the appropriate package versions in R that I saved in a renv lockfile.
I used the package RVAideMemoire which is tied in with mixOmics in bioconductor, which can't be loaded automatically using renv::restore().
I…

Corey
- 405
- 2
- 6
- 18
0
votes
2 answers
libfreetype.6.dylib is not loaded (R project using kableExtra; renv for reproducibility)
I'm working on this code, and when I try to knit analyses.Rmd on one of my computers, I get an error specifically due to the attempt to load kableExtra:
Error: package or namespace load failed for ‘kableExtra’ in dyn.load(file, DLLpath = DLLpath,…

A Cristia
- 31
- 4
0
votes
1 answer
Global cache versus library -- what is used to load packages?
Can someone clarify how the global cache differs from a project library in an renv? Does renv first search a project library, then the global cache?

Rebecca Eliscu
- 165
- 12
0
votes
1 answer
sharing shiny app with renv throws error due to bslib
I wanted to make internally sharing/locally launching a shiny app developed with the {golem} framework a little more robust.
Hence, I used the renv package and installed the shiny app as a local package into a project folder.
I proceeded as follows…

persephone
- 380
- 2
- 10
0
votes
0 answers
Build R container with specific packages
In an effort to apply the MLOps "shift left" approach I switched from virtual environments to containers for each project. The thing is, that I want to take a record of the R packages' version that I use, so that when I build my container from a…

Marco Repetto
- 336
- 2
- 15
0
votes
0 answers
.Rproj file doesn't launch using Rstudio
I have an Renv package stored as tar.gz file.
I would like to unzip the folder and do the below steps
a) Click the .Rproj file
b) Use the "Install and Restart" option in Rstudio to build the package
However, the .Rproj file doesn't open. Instead, it…

The Great
- 7,215
- 7
- 40
- 128
0
votes
1 answer
How do I debug renv::snapshot() which encounters an "Error in !deps$Dev : invalid argument type"?
I have an R project that is using renv. However, I have neglected taking any snapshots for a while and I am now receiving cryptic messages that I don't know how to approach or even begin making a reporoducible example for. Any ideas, given that I am…

ekatko1
- 163
- 8
0
votes
1 answer
How to set the path for database drivers in R studio
I am trying to establish a connection to my database using an R package called DatabaseConnector
I am trying the below code
connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = "postgresql",
…

The Great
- 7,215
- 7
- 40
- 128