On Wed, Apr 10, 2013 at 4:47 AM, Jannis <bt_jan...@yahoo.de> wrote: > Well, its mentioned in the function itself by library(xxx) or require(xxx). > Well, most probably codetools is more aimed towards checking packages in > whcih case such information is in the depends section of the package > declaration.
Yes -- it's written as a static analyzer so it doesn't execute the function in question; hence it won't experience the side effects of package loading. For example: f <- function(x){print("Hello World!"); x + 3} checkUsage(f) # Doesn't print anything Similarly, library() in f won't have any effect until f is executed. MW ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.