Closed matt-dray closed 4 years ago
I get the following error when typing anything during the tibble swirl
Error in parse(text = correct_expression) : <text>:2:0: unexpected end of input
I don't think it's a swirl bug as doesn't happen in another swirl course I ran with same set-up.
Here's the example that causes the error
library(swirl)
> 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? Luke
| Would you like to continue with one of these lessons?
1: tidyswirl tibble
2: No. Let me start something new.
Selection: 1
| First, pass 'airquality' to the class() function to see what class of object
| it is.
>
> class(airquality)
[1] "data.frame"
Show Traceback
Rerun with Debug
Error in parse(text = correct_expression) :
<text>:2:0: unexpected end of input
1: class(airquality
^ | Leaving swirl now. Type swirl() to resume.
The above error happens when anything is typed.
My R session:
sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tibble_2.1.3 swirl_2.4.5
loaded via a namespace (and not attached):
[1] digest_0.6.21 crayon_1.3.4 bitops_1.0-6 R6_2.4.0
[5] magrittr_1.5 pillar_1.4.2 httr_1.4.1 rlang_0.4.0
[9] stringi_1.4.3 curl_4.2 rstudioapi_0.10 testthat_2.2.1
[13] tools_3.5.3 stringr_1.4.0 RCurl_1.98-1.1 yaml_2.2.0
[17] compiler_3.5.3 pkgconfig_2.0.3
Aha, thank you @Luke-Shaw. I'll take a look at this.
Thanks again, @Luke-Shaw! It was a rogue missing )
😅
Fixed here: https://github.com/matt-dray/tidyswirl/commit/0b93fcd6910cbc348bb7b319bb6cfd103e601156
Thanks for sorting @matt-dray, an impressive one character fix! Pesky brackets
Have others go through the materials to discover problems/see what could be explained more clearly, etc.