assess: Assess a submission

View source: R/assess.R

assessR Documentation

Assess a submission

Description

Assess a submission

Usage

assess(
  filename,
  sub_id = filename,
  key,
  use_sub_env = TRUE,
  workdir = NULL,
  seed = NULL,
  preseed = NULL,
  task_varnames = NULL
)

Arguments

filename

name of submission file

sub_id

unique submission identifier

key

key table (see compile_key)

use_sub_env

whether each submission code chunk is to be run within the submission environment (to allow for dependencies between chunks) or whether to be run in the solution environment of the previous chunk (to allow recovery from errors). In the former case, all but the first of the 'key$start_env' environments will be ignored.

workdir

the working directory in which to evaluate the code

seed

starting seed for random number generation (or NULL to not set the seed)

preseed

A named list whose names are the task names and whose elements are the RNG seeds to set prior to the task.

task_varnames

A named list of task variable names, where the names are are some or all of the task names and the elements are named character vectors of variables for the corresponding task.

Details

Task variables are passed to the task_varnames argument to assess_task, and appear in the submission/assessment environment as the variable ._av.

Value

A table


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