Describe the bug, including details regarding any error messages, version, and platform.
The codebase in R uses some inefficient patterns (e.g. any(is.na()) instead of anyNA()) or patterns for which an easier-to-read alternative exists (e.g. expect_equal(names(x), c("a", "b")) instead of expect_named(x, c("a", "b"))).
Fixing those lints doesn't have any visible effect for the user but makes the code more maintainable.
Component(s)
R
Describe the bug, including details regarding any error messages, version, and platform.
The codebase in R uses some inefficient patterns (e.g.
any(is.na())instead ofanyNA()) or patterns for which an easier-to-read alternative exists (e.g.expect_equal(names(x), c("a", "b"))instead ofexpect_named(x, c("a", "b"))).Fixing those lints doesn't have any visible effect for the user but makes the code more maintainable.
Component(s)
R