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

This question does not work in R 4.3.1 #522

Open
dancrosby opened this issue May 13, 2023 · 8 comments
Open

This question does not work in R 4.3.1 #522

dancrosby opened this issue May 13, 2023 · 8 comments

Comments

@dancrosby
Copy link

Output: "Now we'll type the same expression except we'll use the `&&` operator. Type the expression TRUE && c(TRUE, FALSE, FALSE)."

I get:
Error in TRUE && c(TRUE, FALSE, FALSE) :
'length = 3' in coercion to 'logical(1)'

Possibly related to: https://stackoverflow.com/questions/72848442/r-warning-lengthx-2-1-in-coercion-to-logical1

@dancrosby
Copy link
Author

This error also prevents the user from skipping the question, thus they cannot continue with the course.
image

@deem-lab
Copy link

deem-lab commented May 28, 2023

Swirl is great, but I have the same issue. In the short term, a patch that allows a user to skip the question would be great. If the concept is important and useful, another way to demonstrate the logic expression would be helpful in the long term.

@matias-lee
Copy link

Same issue. Hopefully swirl updates the issue soon!

@stuart-james
Copy link

Same issue.

@palekelpie
Copy link

I've also run into the same issue. Additionally, skip() isn't working either. Because of this I can't finish the lesson.

@CristinaIDSilva
Copy link

hello, I managed to get around this problem, doing this specific module in Coursera Lab Sandbox.

@Mutengooo
Copy link

same problem am facing here... am using the latest version of rstudio and R... am not able to go to the next round even after typing next()

| Keep trying! Or, type info() for more options.

| As you'll see, the && version of AND works differently. Type: TRUE &&
| c(TRUE, FALSE, FALSE)

TRUE && c(TRUE, FALSE, FALSE)
Error in TRUE && c(TRUE, FALSE, FALSE) :
'length = 3' in coercion to 'logical(1)'

skip()
Error in TRUE && c(TRUE, FALSE, FALSE) :
'length = 3' in coercion to 'logical(1)'

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

@ans1genie
Copy link

same issure here :(

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

8 participants