Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marneypratt opened this issue Jan 24, 2020 · 0 comments
Open

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

marneypratt opened this issue Jan 24, 2020 · 0 comments

Comments

@marneypratt
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant