Skip to content

Commit c4135da

Browse files
author
Noam Ross
committed
Update dependencies
1 parent e25df14 commit c4135da

File tree

3 files changed

+227
-432
lines changed

3 files changed

+227
-432
lines changed

.Rprofile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
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+
123
source("renv/activate.R")

0 commit comments

Comments
 (0)