Uses qtijs to render a single xml file in the RStudio viewer pane with a local server.
Arguments
- input
The path to the input Rmd/md/xml document or an AssessmentItem, AssessmentTest, AssessmentTestOpal, AssessmentSection object.
- qtijs_path
The path to the qtijs renderer (qti.js), which will be served by the local preview server and to which xml files will be copied. Default is the folder used by the running preview server, or the installed package's QTIJS folder when no server is running. Knit sessions inherit the server's folder even when RStudio uses a development checkout.
- task_names
Display naming policy:
"title","filename","both", or"hidden".NULLuses optionrqti.task_names, falling back to"title". See task_names.
Examples
if (FALSE) { # interactive()
file <- system.file("extdata", "sc1d.xml", package = 'rqti')
render_qtijs(file)
}