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

Suboptimal usage of all.equal in if-statement in applyFolds() #26

Open
Eva2703 opened this issue Jul 4, 2024 · 0 comments
Open

Suboptimal usage of all.equal in if-statement in applyFolds() #26

Eva2703 opened this issue Jul 4, 2024 · 0 comments

Comments

@Eva2703
Copy link
Contributor

Eva2703 commented Jul 4, 2024

On some PCs, line 508 in applyFolds()

if (all.equal(papply, mclapply) == TRUE) {
produced the error

Error in if (all.equal(papply, mclapply) == TRUE) { :
the condition has length > 1

for me. It can be easily fixed by changing the line to
if (isTRUE(all.equal(papply, mclapply))) {
(It also says in ?all.equal not to use all.equal directly in if expressions, but use isTRUE(all.equal(....)) instead.)

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

1 participant