-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.Rprofile
33 lines (29 loc) · 1.16 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
31
32
33
# REMEMBER to restart R after you modify and save this file!
# 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())
}
if (interactive() & requireNamespace("blogdown", quietly = TRUE)) {
suppressMessages(require(blogdown))
}
# 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 = FALSE,
# build .Rmd to .html (via Pandoc); to build to Markdown, set this option to 'markdown'
blogdown.method = 'html',
# fix Hugo version
blogdown.hugo.version = "0.80.0",
# set website root directory
blogdown.site_root = "site/"
)
options(
scipen = 0,
dplyr.summarise.inform = TRUE
)