compile_key: Compile the assessment key

View source: R/process_rmd.R

compile_keyR Documentation

Compile the assessment key

Description

Compile the assessment key, creating starting and solution environments to use in assessment, as well as output to use in feedback reports.

Usage

compile_key(
  s_file,
  a_file,
  overwrite = FALSE,
  workdir = NULL,
  save_fig = TRUE,
  preseed = NULL
)

Arguments

s_file

name of Rmd solution file

a_file

name of Rmd file with assessment code

overwrite

overwrite solution directory if it exists?

workdir

working directory

preseed

Named list of seeds to be passed to set.seed before running each solution code chunk. The element names should match the assessment and solution code chunk names.

savefig

save any files created in solution subdirectory?

Details

Sets up environments for running submission code and assessment code. Also creates output/plots when appropriate and stores them in the solution subdirectory in the current working directory.

Value

a list containing the starting environments for each task

See Also

tangle


dalejbarr/assessr documentation built on Jan. 25, 2024, 10:47 p.m.