-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Noam Ross
committed
Mar 2, 2022
1 parent
e25df14
commit c4135da
Showing
3 changed files
with
227 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
if (file.exists(".env")) { | ||
try(readRenviron(".env"), silent = TRUE) | ||
} | ||
|
||
if (Sys.info()[['sysname']] %in% c('Linux', 'Windows')) { | ||
options(repos = c(RSPM = "https://packagemanager.rstudio.com/all/latest")) | ||
} else { | ||
## For Mac users, we'll default to installing from CRAN/MRAN instead, since | ||
## RSPM does not yet support Mac binaries. | ||
options(repos = c(CRAN = "https://cran.rstudio.com/"), | ||
pkgType = "both") | ||
# options(renv.config.mran.enabled = TRUE) ## TRUE by default | ||
} | ||
|
||
options( | ||
renv.config.repos.override = getOption("repos"), | ||
renv.config.auto.snapshot = FALSE, ## Don't keep renv.lock updated automatically (messes up GitHub Actions) | ||
renv.config.rspm.enabled = TRUE, ## Use RStudio Package manager for pre-built package binaries | ||
renv.config.install.shortcuts = TRUE, ## Use the existing local library to fetch copies of packages for renv | ||
renv.config.cache.enabled = TRUE ## Use the renv build cache to speed up install times | ||
) | ||
|
||
source("renv/activate.R") |
Oops, something went wrong.