gradethis must be loaded globally using library(gradethis) otherwise code_feedback cannot be found.
mocked <- gradethis::mock_this_exercise("rnorm(10)", "rnorm(10)")
gradethis::grade_this_code()(mocked)
#> #> (gradethis::grade_this_code())(mocked)
#> Error in do_grade_this(): could not find function "code_feedback"
#> <gradethis_graded_this_code: [Neutral]
#> A problem occurred with the grading code for this exercise.
#> >
Created on 2024-07-02 with reprex v2.1.0