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

R Programming Lesson 8, Logic - '&&' Error #524

Open
mheah opened this issue Jun 18, 2023 · 4 comments
Open

R Programming Lesson 8, Logic - '&&' Error #524

mheah opened this issue Jun 18, 2023 · 4 comments

Comments

@mheah
Copy link

mheah commented Jun 18, 2023

Stuck on this question:
| Now we'll type the same expression except we'll use the && operator. Type the expression TRUE && c(TRUE, FALSE, FALSE).

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

Does anyone face the same error as me? My R version is 4.3.0.
Any solution to carry with the course?
Thanks

@mheah mheah changed the title R Programming Lesson 8 - Logic R Programming Lesson 8, Logic - '&&' Error Jun 18, 2023
@miguel-samaniego
Copy link

The same problem exists in R version 4.3.1. Couldn't find a fix so I ended up skipping that lesson. Did you find any solution?

@yesezra
Copy link

yesezra commented Jul 30, 2023

I too am having this issue, on R 4.3.1. Additionally the skip() function kicks me out of swirl entirely and I can't seem to recover my session.

@Durbalan
Copy link

I am also encountering the same problem. I have tried every possible way to get past the error warning, but nothing is working. I am totally new to this, so I don't know how such problems are resolved here. Can someone enlighten me, please?

@gdickens
Copy link

I'm facing the same issue.

It appears to be a result of a change in R 4.3:

"Calling && or || with LHS or (if evaluated) RHS of length greater than one is now always an error, with a report of the form
'length = 4' in coercion to 'logical(1)'
Environment variable R_CHECK_LENGTH_1_LOGIC2 no longer has any effect."_
Source

Until it's fixed, I'll drop the lesson from my workshops.

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

5 participants