Commits


Etienne Bacher authored and GitHub committed 5cb8bb36eae
GH-43357: [R] Fix some lints (#43338) ### Rationale for this change I'm building a new package to find and automatically fix lints in R code: [`flint`](https://flint.etiennebacher.com/). I'm using real-life, large packages to check its performance and `arrow` is one of them. Since I already test on this, there's no additional cost for me in proposing those changes. FYI, those changes were generated with `flint::fix_package(exclude_linters = "outer_negation")` (I excluded this linter because of https://github.com/etiennebacher/flint/issues/23). ### What changes are included in this PR? There are many changes but most of them are trivial: - replace `any(is.na())` by `anyNA()` - add a leading 0 to decimal (e.g `.1` -> `0.1`) - use `expect_named()` in tests etc. `flint` is quite new and linter rules are necessarily a bit opinionated, so some of those changes might not be to your taste. ### Are these changes tested? They don't change any functionality. ### Are there any user-facing changes? No. * GitHub Issue: #43357 Authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com> Signed-off-by: Nic Crane <thisisnic@gmail.com>