tanaylab / metacell

Metacell - Single-cell mRNA Analysis
https://tanaylab.github.io/metacell
Other
109 stars 30 forks source link

Fixes while condition to avoid error with R (>4.2) #86

Closed pujaltes closed 1 year ago

pujaltes commented 1 year ago

Implements recommended fix in #84. Issue arises because in R 4.2.0 release news: "Calling if() or while() with a condition of length greater than one gives an error rather than a warning".

In previous versions of R multiple condition in a while would result in a warning and only evaluate the first element. This has been deprecated and will now result in an error, a short circuit && ensures that only the first element is evaluated and avoids an error.

aviezerl commented 1 year ago

Thanks!