r-lib / devtools

Tools to make an R developer's life easier
https://devtools.r-lib.org
Other
2.39k stars 760 forks source link

Quiet check #2447

Closed hadley closed 2 years ago

jennybc commented 2 years ago

For posterity, the meatiest thing we address here is this warning seen when checking on R 4.1.2:

W  checking for unstated dependencies in 'tests' (3s)
   Warning: parse error in file 'testthat/test-reload.R':
   'length(x) = 3 > 1' in coercion to 'logical(1)'

The relevant infelicity in base R's check functionality has since been fixed, here:

https://github.com/wch/r-source/commit/28ea96d57554c7314d81aa580a5c2baddc2291e9

The fix is to avoid sending an expression to, e.g., library(character.only = TRUE).