-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.R
20 lines (18 loc) · 864 Bytes
/
build.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## install packagedocs if not installed:
# options(repos = c(tessera = "http://packages.deltarho.org",
# getOption("repos")))
# install.packages("packagedocs")
library(trelliscope)
knitr::opts_knit$set(root.dir = normalizePath("."))
packagedocs::render_docs(
code_path = "~/Documents/Code/DeltaRho/trelliscope",
docs_path = ".", # location of docs directory
package_name = "trelliscope", # name of the package
main_toc_collapse = TRUE, # use collapsing toc on main page
rd_toc_collapse = TRUE, # use collapsing toc on rd page
lib_dir = "assets", # put assets in "assets" directory
render_main = TRUE, # render main page
render_rd = TRUE, # render rd page
view_output = TRUE, # look at the output after render
rd_index = "./rd_index.yaml" # optional path to rd layout yaml
)