fun_result_identical: Do return values from a function match solution?

View source: R/utils.R

fun_result_identicalR Documentation

Do return values from a function match solution?

Description

Do return values from a function match solution?

Usage

fun_result_identical(
  subfn,
  args = list(),
  solenv,
  solfn = subfn,
  sameseed = TRUE,
  add = TRUE
)

Arguments

subfn

name of function in submission environment

args

list of args to pass to function

solenv

solution environment

solfn

name of solution function

sameseed

whether to run the two functions with the same state of .Random.seed

add

whether to add feedback

Details

compare the result of the function in the submission environment to its result in the solution environment

Value

logical


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