webexercises_default: Create default webexercises document

View source: R/webexercises_default.R

webexercises_defaultR Documentation

Create default webexercises document

Description

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

Usage

webexercises_default(...)

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.

Value

R Markdown output format to pass to 'render'.

See Also

render, html_document

Examples

# 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)

webexercises documentation built on May 31, 2023, 8:16 p.m.