Henrik Bengtsson
2010-Feb-16 12:30 UTC
[Rd] FYI: A case that the code validation of R CMD check misses
Hi, I discovered a case where the code validation of R CMD check fails to detect this issue. If a non-existing is defined/assigned in the same function as a non-existing object is used, it passes unnoticed. For example, foo <- function(...) { nonExistingDummy1 <- nonExistingDummy1(...); nonExistingDummy2 <- nonExistingDummy2; res <- nonExistingDummy3(...); nonExistingDummy3 <- function(...) {}; } gives ... * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK Tested on Windows Vista with: R version 2.10.1 Patched (2010-01-12 r50990) R version 2.11.0 Under development (unstable) (2010-02-14 r51138) Just a note Henrik