Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Noam Ross committed Mar 2, 2022
1 parent e25df14 commit c4135da
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 432 deletions.
22 changes: 22 additions & 0 deletions .Rprofile
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")
Loading

0 comments on commit c4135da

Please sign in to comment.