assess_task | R Documentation |
Assess an individual task from a submission
assess_task(
sub_id,
task,
codelist,
a_code,
orig_env,
sol_env,
use_sub_env = TRUE,
task_varnames = NULL
)
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 |
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. |
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"]]
.
TODO
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.