rres_render_solutions: Render two versions of a file, with and without solutions

View source: R/render_utils.R

rres_render_solutionsR Documentation

Render two versions of a file, with and without solutions

Description

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.

Usage

rres_render_solutions(input, fext = "html", ...)

Arguments

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

Details

The function works as a standalone function called in the console or script.

Value

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.

Examples

# rresutils::rres_render_solutions("my_path/file")


rressler/rresutils documentation built on Aug. 27, 2023, 12:37 p.m.