-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.Rprofile
33 lines (29 loc) · 1021 Bytes
/
.Rprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
source("renv/activate.R")
# Project Renvironment in this case must take
# precedent over user Renvironment.
if (file.exists("~/.Rprofile")) {
base::sys.source("~/.Rprofile", envir = environment())
}
options(
blogdown.method = 'markdown',
blogdown.new_bundle = TRUE,
blogdown.knit.on_save = FALSE,
blogdown.ext = ".Rmd",
blogdown.subdir = "blog",
blogdown.title_case = TRUE,
blogdown.hugo.version = readLines(".hugoversion"),
renv.config.sandbox.enabled = FALSE,
renv.config.auto.snapshot = FALSE
)
if(interactive()){
cat(
"",
"This project uses different renv profiles for different operations",
"You should be on the default profile if you are contributing a blogpost",
" - `renv::activate('json')` enables profile with packages for json validation",
" - `renv::activate('production')` enables profile with packages needed to build the website",
" - `renv::activate('dev')` enables profile with all packages working locally on the website",
"",
sep="\n"
)
}