Open ttenishev opened 1 year ago
Trying to skip causes the same problem:
skip() Error in TRUE && c(TRUE, FALSE, FALSE) : 'length = 3' in coercion to 'logical(1)'
| Leaving swirl now. Type swirl() to resume.
Same for me
yup same for me .
TRUE &&c(TRUE) [1] TRUE
| Not quite! Try again. Or, type info() for more options.
| As you'll see, the && version of AND works differently. Type: TRUE && c(TRUE, | FALSE, FALSE)
Using vectors of more than one element in && or || will give an error.
same for me. it also happens in course - The R Programming Environment Logic
It looks like an update to R version 4.3.0 (2023-04-21) causes an error for && Operator in Course 8 and elsewhere.
Per CRAN R Project release News (2023-04-21),
" SIGNIFICANT USER-VISIBLE CHANGES: • 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_1LOGIC2 no longer has any effect. "
Same Issue for me!
It looks like an update to R version 4.3.0 (2023-04-21) causes an error for && Operator in Course 8 and elsewhere.
Per CRAN R Project release News (2023-04-21),
" SIGNIFICANT USER-VISIBLE CHANGES: • 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_1LOGIC2 no longer has any effect. "
indeed - hte reason is an update to R enviroment. but the course(s) should be updated as well
Will this get fixed?
With a little more googling, I was able to find a work around to this problem. If you install an earlier version of R (pre version 4.3.0) the swirl Logics course is able to proceed with the && inputs.
If you are using Windows: https://cran.r-project.org/bin/windows/base/old/
I downloaded/installed R version 4.2.3 Open RStudio if you are using it, got to the "Tools" tab and select "Global Options" In the window, in the R General section, change your R version to the older version like 4.2.3 by checking "Choose version of R" and selecting an older version. Hit "OK", "Apply", and "Ok" You will then need to close and reopen RStudio to apply the changes. You might also need to install the swirl package again.
Hello! I have a problem with this task in Course 1 (R Programming) Unit 8 (Logic):
My OS is Windows 11, this is what I get from infoSession():
Could you please help me fix it?