view | R Documentation |
This function allows the user to explore exercises from the exams.forge.data
package
and optionally render them to PDF or HTML. Users can filter exercises by directory (topic)
or by a pattern in filenames or file contents.
view(
action = c("topic", "file", "pdf", "html"),
pattern = NULL,
topic = TRUE,
...
)
action |
Character. One of
|
pattern |
Character or |
topic |
Logical. If |
... |
Additional arguments passed to |
A character vector of topics or filenames, or NULL
if no exercises are found.
When rendering (pdf
/html
), the files are rendered silently with messages and warnings suppressed.
view("topic")
# List all files in a specific topic
view("file", pattern = "ttest", topic = TRUE)
if (interactive()) {
# Render the files matching a pattern to HTML
view("file", pattern = "hyper")
view("html", pattern = "hyper")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.