-
Notifications
You must be signed in to change notification settings - Fork 599
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
Swirl "Logic" course has an error in one lesson not allowing you to finish said question #911
Comments
I'm having this same issue. When I use ?"&&" it says this on the help page: Not sure how other people have been getting past this. |
I am having the same issue in RStudio 2023.060.1 Build 524 | R 4.3.1. Additionally, the "skip()" function does not work as it is supposed to skip a question - not the whole lesson.
|
Yeah. The error is caused when swirl tries to run the command it was expecting, giving swirl itself an error rather than just one in the console
|
I have put in a pull request to update the https://github.com/swirldev/swirl_courses/pull/527 Until this is merged you can either edit out the uestions in the .yaml file or copy my editted lesson. Learners may need to use a different name when loading swirl if they have already tried the lesson: create file path to swirl lesson filefile_path <- file.path(find.package("swirl"),"Courses","R_Programming","Logic","lesson.yaml") url of my edited lesson filefile_url <- "https://raw.githubusercontent.com/daniel-j-miller/swirl_courses/master/R_Programming/Logic/lesson.yaml" download and save filedownload.file(file_url, file_path) |
I went down the rabbit hole and found that the error is because the newer version of R limits the && function result length to 1, whereas I guess previously it did not. There are tickets in to resolve it. But there is a second issue with
| When you are at the R prompt (>): |
Worked great, thanks for the assist. Only issue I had with it was the fact that I was using the R Programming E version that doesn't connect with Coursera. This required a minor tweak to the file_path to include the right folder as seen below. file_path <- file.path(find.package("swirl"),"Courses","R_Programming_E","Logic","lesson.yaml") |
The question:
Now we'll type the same expression except we'll use the
&&
operator. Type the expression TRUE && c(TRUE, FALSE, FALSE).This expression raises an error in R, so you can't get the question to be correct. When you do skip(), Swirl runs the snippet of code for you, erroring out of Swirl. This makes it so you cannot complete the 'Logic' section of the swirl course in R
The text was updated successfully, but these errors were encountered: