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

View source: R/render_utils.R

rres_render_solutions_dateR 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_date(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. Both have the current date appended to the file name. One has no solutions in the output and the second has solutions and the word solutions in the output file name.

Examples

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

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