-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_build.R
More file actions
26 lines (17 loc) · 684 Bytes
/
_build.R
File metadata and controls
26 lines (17 loc) · 684 Bytes
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
# for testing on Mac
sysinf <- Sys.info()
if ( sysinf['sysname'] == 'Darwin' ) {
Sys.setenv(RSTUDIO_PANDOC="/Applications/RStudio.app/Contents/MacOS/pandoc")
}
if ( sysinf['sysname'] == 'Windows' ) {
# only if RSTUDIO_PANDOC is not already set
if (Sys.getenv("RSTUDIO_PANDOC")=="" || is.na(Sys.getenv("RSTUDIO_PANDOC"))) {
# this might not always be accurate! True for RStudio RStudio 2024.04.1+748
Sys.setenv(RSTUDIO_PANDOC="C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools")
}
}
# setup a few things, if needed
setwd(here::here("presentation"))
source(here::here("presentation","libraries.R"))
#run render
rmarkdown::render("index.Rmd")