Skip to contents

Uses qtijs to render a single xml file in the RStudio viewer pane with a local server.

Usage

render_xml(input, qtijs_path = qtijs_preview_path(), task_names = NULL)

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". NULL uses option rqti.task_names, falling back to "title". See task_names.

Value

nothing, has side effects

Examples

if (FALSE) { # interactive()
  file <- system.file("extdata", "sc1d.xml", package = 'rqti')
  render_qtijs(file)
}