assess_all: Assess all files in a directory

View source: R/assess.R

assess_allR Documentation

Assess all files in a directory

Description

Convenience function that runs the function assess on all files within the directory specified by dirname.

Usage

assess_all(
  dirname,
  key,
  sub_id = moodle_id(list_submissions(dirname)),
  use_sub_env = TRUE,
  workdir = NULL,
  seed = NULL,
  preseed = NULL,
  stop_after = -1L,
  task_varlist = NULL
)

Arguments

dirname

name of the directory containing the submission files

key

Must be either: (1) A single key with answers to the problems, normally result of call to link{compile_key}; or (2) A named list of keys, with names matching the values of sub_id.

sub_id

subject identifies (vector same length as dirname)

use_sub_env

process submission code in the submission environment (FALSE to process it in the solution environment)

workdir

working directory

seed

random seed to set at the beginning

preseed

Named list with random seed to set before each (named) block.

stop_after

stop processing after completing N files

task_varlist

Named list of lists, with each element having names corresponding to the names in sub_id, and with each sublist being itself a named list whose names correspond to task chunks. Elements of that second list should be named character vectors with task variables.

Value

a dataframe with the assessment variables and their values


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