dotfiles/dot_config/r/Rprofile.r

13 lines
313 B
R
Raw Normal View History

2021-04-24 00:19:28 -04:00
## TODO make this find .Rprofiles in parent directories
if ( ".Rprofile" %in% list.files(all.files = TRUE) ) {
message("Sourcing local .Rprofile")
source(".Rprofile")
2021-02-15 20:53:16 -05:00
}
## Set CRAN mirror:
local({
r <- getOption("repos")
r["CRAN"] <- "https://cloud.r-project.org/"
options(repos = r, Ncpus = 8)
})