assess_task: Assess individual task

View source: R/assess.R

assess_taskR Documentation

Assess individual task

Description

Assess an individual task from a submission

Usage

assess_task(
  sub_id,
  task,
  codelist,
  a_code,
  orig_env,
  sol_env,
  use_sub_env = TRUE,
  task_varnames = NULL
)

Arguments

sub_id

submission id

task

name of task to assess

codelist

list of all submission code chunks

a_code

assessment code

orig_env

starting environment in which to evaluate submission code

use_sub_env

set to TRUE if you want to run in a single submission environment; FALSE to use the solution as starting environment

task_vars

A named character vector where the element names are the variables in the solution and the values are their realizations in the submission.

Details

The values in task_vars appear in the submission/assessment environment as elements of the character vector ._av. So if you have a task variable named 'my_var' in the solution you would reference it in the assessment code as ._av[["my_var"]].

Value

TODO


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