Skip to content

script won't reset() in script question type #44

@marneypratt

Description

@marneypratt

I have been writing some swirl lessons to use in my undergraduate biology course. I couldn't figure out how to do a script question on my own at all. I used the code for the customTests.R from the "Tidying Data with tidyr" lesson in the "Getting and Clearning Data" course. I honestly don't understand that code at all, but it works. I am able to use submit() to submit the script.R file and it gets compared to the script-correct.R file just fine. But when I try using reset() to start the script from scratch it gives an error like this
"Error in UseMethod("do_rst") :
no applicable method for 'do_rst' applied to an object of class "c('environment', 'test')"
| Leaving swirl now. Type swirl() to resume."

I just removed the option to use reset() from the instructions or hint in the question. So I have things working okay. But it would be nice for students to have the ability to use reset() to start a script for a script question over from scratch.

I am not at a very experienced programmer (I am an academic who knows how to just to code to do the analyses I need to visualize and analyze my data). I just learned how to use swirl and swirlify fairly recently. So I may be missing something very obvious here.

I am using swirl 2.4.4 and swirlify 0.5.3

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