File tree Expand file tree Collapse file tree 3 files changed +227
-432
lines changed Expand file tree Collapse file tree 3 files changed +227
-432
lines changed Original file line number Diff line number Diff line change
1
+ if (file.exists(" .env" )) {
2
+ try(readRenviron(" .env" ), silent = TRUE )
3
+ }
4
+
5
+ if (Sys.info()[[' sysname' ]] %in% c(' Linux' , ' Windows' )) {
6
+ options(repos = c(RSPM = " https://packagemanager.rstudio.com/all/latest" ))
7
+ } else {
8
+ # # For Mac users, we'll default to installing from CRAN/MRAN instead, since
9
+ # # RSPM does not yet support Mac binaries.
10
+ options(repos = c(CRAN = " https://cran.rstudio.com/" ),
11
+ pkgType = " both" )
12
+ # options(renv.config.mran.enabled = TRUE) ## TRUE by default
13
+ }
14
+
15
+ options(
16
+ renv.config.repos.override = getOption(" repos" ),
17
+ renv.config.auto.snapshot = FALSE , # # Don't keep renv.lock updated automatically (messes up GitHub Actions)
18
+ renv.config.rspm.enabled = TRUE , # # Use RStudio Package manager for pre-built package binaries
19
+ renv.config.install.shortcuts = TRUE , # # Use the existing local library to fetch copies of packages for renv
20
+ renv.config.cache.enabled = TRUE # # Use the renv build cache to speed up install times
21
+ )
22
+
1
23
source(" renv/activate.R" )
You can’t perform that action at this time.
0 commit comments