webexercises_default: Create default webexercises document

Description Usage Arguments Details See Also Examples

View source: R/webexercises_default.R

Description

This function wraps rmarkdown::html_document to configure compilation to embed the default webexercises CSS and JavaScript files in the resulting HTML.

Usage

1

Arguments

...

Additional function arguments to pass to html_document.

Details

Call this function as the output_format argument for the render function when compiling HTML documents from RMarkdown source.

See Also

render, html_document

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# copy the webexercises 'R Markdown' template to a temporary file
## Not run: 
my_rmd <- tempfile(fileext = ".Rmd")
rmarkdown::draft(my_rmd, "webexercises", "webexercises")

# compile it
rmarkdown::render(my_rmd, webexercises::webexercises_default())

# view the result
browseURL(sub("\\.Rmd$", ".html", my_rmd))

## End(Not run)

dalejbarr/webex documentation built on Sept. 14, 2021, 5:43 a.m.