Release Notes
Removed
RY095 (negation-comparison-precedence) is retired. The rule assumed C
operator precedence, but R gives unary ! lower precedence than
comparison operators: !x == y parses as !(x == y), so every flagged
site was correct code and the suggested rewrite was a semantic no-op.
The rule number will not be reused.
Fixed
RY096 no longer fires in functions whose formals include ...:
there, hasArg(name) legitimately tests for a dots-supplied argument
(if (hasArg(b)) list(...)$b). All 84 corpus hits were this idiom.
The rule now only flags the provable case — a hasArg() naming a
non-formal in a function without ... is always FALSE.
Corrections to 0.4.0 release notes
- The scales
!length(x) == 1 guards cited as newly found bugs were not
bugs; they parse as length(x) != 1 and behave as intended. The same
applies to RY095 reports in rpart, mice, quantreg, spdep, and mlflow.
Install ry-cli 0.4.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/sims1253/ry/releases/download/v0.4.1/ry-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/sims1253/ry/releases/download/v0.4.1/ry-cli-installer.ps1 | iex"
Download ry-cli 0.4.1