Comments (4)
I've made a change to ensure the path suffix is consistent:
> renv_paths_cache()
[1] "~/Library/Application Support/renv/cache/R-3.5/v2"
> Sys.setenv(RENV_PATHS_CACHE = tempfile("renv-cache-"))
> renv_paths_cache()
[1] "/var/folders/qt/txb728ms5012wp_4yn369wth0000gn/T//RtmpVH36He/renv-cache-66933cb1f745/R-3.5/v2"
This does invalidate the old cache so old projects will need to be updated.
from renv.
After using further the new version of renv and installing new package with renv::install
, I have now a renv/cache
and other at root directory (binary, and repos)
packageVersion("renv")
#> [1] '0.2.0.68'
renv:::renv_paths_cache()
#> [1] "C:\\Users\\chris\\AppData\\Local/renv/cache/R-3.5/v2"
renv:::renv_cache_list()
#> [1] "C:\\Users\\chris\\AppData\\Local/renv/cache/R-3.5/v2/brew/1.0-6/83a95e35c28b386681e1a05f29fae496/brew/DESCRIPTION"
#> [2] "C:\\Users\\chris\\AppData\\Local/renv/cache/R-3.5/v2/data.table/1.12.0/6756128aea115cf6aa17db1eab6c51d9/data.table/DESCRIPTION"
library(magrittr)
fs::dir_ls(renv:::renv_paths_common(""))
#> C:/Users/chris/AppData/Local/renv/binary
#> C:/Users/chris/AppData/Local/renv/cache
#> C:/Users/chris/AppData/Local/renv/R-3.5
#> C:/Users/chris/AppData/Local/renv/repos
#> C:/Users/chris/AppData/Local/renv/source
Created on 2019-04-06 by the reprex package (v0.2.1.9000)
I believe the old one is not useful anymore ?
from renv.
Thanks -- this wasn't intentional and should be fixed up now.
> packageVersion("renv")
[1] ‘0.2.0.69’
> renv_paths_cache()
[1] "~/Library/Application Support/renv/R-3.5/cache/v2"
> Sys.setenv(RENV_PATHS_CACHE = "~/.renv-cache")
> renv_paths_cache()
[1] "~/.renv-cache/R-3.5/v2"
Note that the path format is slightly different when using an environment variable. This is just so that you can reuse the same cache variable across multiple versions of R. Does that make sense? Or should we just use the same path format in each case?
from renv.
It make great sense to be able to reuse a cache environment variable across version. This path make sense "~/.renv-cache/R-3.5/v2"
but we would expect the usual path to be "~/Library/Application Support/renv/cache/R-3.5/v2"
. 🤔
Currently We will have two different directory trees depending of use of environment variable or not...
renv_path_root/R_version/cache_name/cache_ver
renv_path_cache/R_version/cache_ver
Reading about env var I would have thought
RENV_PATH_CACHE
Is only cache
directory sensitive to R version or also boostrap
, repos
and binary
as it seems to be intended now ?
from renv.
Related Issues (20)
- Error: renv looks for project's DESCRIPTION file HOT 3
- renv::use() requires R restart after updating loaded packages HOT 2
- renv::restore() does not restore lockfile package versions HOT 9
- renv::init() terra installation fails HOT 4
- renv::restore() doesn't create python virtualenv HOT 1
- renv::restore() getting "un-done" by "the dependency tree was repaired" HOT 8
- Cannot install bioconductor Rhtslib using Dockerfile and renv - without renv works fine HOT 3
- Running Renv in Docker HOT 1
- renv::load(other_project) fails if autoload is disabled HOT 1
- creates renv/library folders for each date HOT 2
- Restoring older versions of r-universe packages doesn't work anymore? HOT 4
- renv does not include remote libraries in lock file HOT 2
- Opt users into using PPM when using default repos on Positron HOT 2
- Investigate suspicious looking repos code
- separate download step from install step in `renv::restore`? HOT 2
- `checkout()` breaks restoring if checking out older snapshots HOT 5
- Bioconductor packages wrongly detected to be out-of-sync HOT 2
- checkout with action "snapshot" does not generate the standard renv snapshot HOT 1
- Renv won't hydrate packages listed in the DESCRIPTION HOT 2
- renv bioconductor error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from renv.