-
Notifications
You must be signed in to change notification settings - Fork 1
/
.Rprofile
30 lines (24 loc) · 1.08 KB
/
.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
# REMEMBER to restart R after you modify and save this file!
library(magrittr)
# First, execute the global .Rprofile if it exists. You may configure blogdown
# options there, too, so they apply to any blogdown projects. Feel free to
# ignore this part if it sounds too complicated to you.
if (file.exists("~/.Rprofile")) {
base::sys.source("~/.Rprofile", envir = environment())
}
source(here::here("R", "load_functions.R"))
source(here::here("R", "load_data.R"))
# Now set options to customize the behavior of blogdown for this project. Below
# are a few sample options; for more options, see
# https://bookdown.org/yihui/blogdown/global-options.html
options(
# to automatically serve the site on RStudio startup, set this option to TRUE
blogdown.serve_site.startup = FALSE,
# to disable knitting Rmd files on save, set this option to FALSE
blogdown.knit.on_save = TRUE,
# build .Rmd to .md; to build to .html (via Pandoc), set this option to 'html'
blogdown.method = 'markdown'
)
# fix Hugo version
options(blogdown.hugo.version = "0.95.0")
options(blogdown.knit.serve_site = FALSE)