rres_render_solutions | R Documentation |
This function assumes the YAML header of a .qmd file uses a parameter called solutions, params: solutions which has two values, TRUE and FALSE. The file may use this parameter to adjust the R markdown chunk options such as eval or echo when rendering to output the solutions to exercises.
rres_render_solutions(input, fext = "html", ...)
input |
text: the name of the file to be rendered |
fext |
text for the file extension |
... |
text: other parameters to be passed to the render function |
The function works as a standalone function called in the console or script.
creates two output files in the default directory. The one with no solutions in the output has the word student in the file name. The one with solutions has the word solutions in the file name.
# rresutils::rres_render_solutions("my_path/file")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.