swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.14k stars 599 forks source link

reset() crashes Swirl #896

Open nighrv opened 2 years ago

nighrv commented 2 years ago

Using reset() seems to crash the swirl environment. I would expect a more graceful reset. Using RStudio 4.1.2.

Here is a sample of the session:

| This will require multiple steps, which we will build up gradually using | %>%. Edit the R script, save it, then type submit() when you are ready. | Type reset() to reset the script to its original state.

reset() Error in UseMethod("do_rst") : no applicable method for 'do_rst' applied to an object of class "c('environment', 'default')"

| Leaving swirl now. Type swirl() to resume.

swirl()

| Welcome to swirl! Please sign in. If you've been here before, use the | same name as you did then. If you are new, call yourself something | unique.

What shall I call you? Bob

| Would you like to continue with one of these lessons?

1: Getting and Cleaning Data Tidying Data with tidyr 2: No. Let me start something new.

Selection: 1

| Attempting to load lesson dependencies...

| Package ‘readr’ loaded correctly!

| Package ‘tidyr’ loaded correctly!

| Package ‘dplyr’ loaded correctly!

| This will require multiple steps, which we will build up gradually using | %>%. Edit the R script, save it, then type submit() when you are ready. | Type reset() to reset the script to its original state.