Description Usage Arguments Details Examples
Copy (static) files (e.g., graphics, data sets, etc.) for inclusion as supplements in an exercise.
| 1 | include_supplement(file, dir = NULL, recursive = FALSE)
 | 
| file | character. A (vector of) file name(s). | 
| dir | character. The directory where  | 
| recursive | logical. Should also sub-directories of  | 
Usually, supplement files are created dynamically within an exercise,
e.g., data is simulated and then plotted or stored in a file etc.
However, sometimes an exercises wants to include a static supplement
file that is available in some directory on the system. Then,
the include_supplement is a convenience function that
copies such a file from its directory into the supplements of
an exercise. Then it can be included/referenced as usual in the
question/solution text.
| 1 2 3 4 5 | ## The "Rlogo" exercise uses a static image which is provided
## within the "exams" package.
if(interactive()) {
exams2html("Rlogo.Rnw")
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.