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

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