Skip to content

gradethis does not work when namespaced  #364

@JosiahParry

Description

@JosiahParry

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions