[flir] tells me it should be `!all(is.na(weights))` (more readable). https://flir.etiennebacher.com/reference/outer_negation_linter