Learn R Programming

testwhat (version 4.2.2)

override: Override the solution code and pd in a state

Description

Produces a new state with a custom solution code. Mostly useful inside test_or, if you want to test for different cases.

Usage

override_solution(state, code = NULL, ...)
override_solution_code(state, code)
override_solution_env(state, ...)

Arguments

state
the state to create a substate from
code
the solution code to put into the state
...
named environment variables to add to or override in the solution environment