Dear list members,

I frequently program small scripts and wrap them into functions to be able to check them with checkUsage. In case these functions (loaded via source or copy pasted to the R console) use functions from other packages, I get this error:


no visible global function definition for ‘xxxxxxx’

For example:



test = function() {
  require(plotrix)
  color.legend()
}

library(codetools)
checkUsage(test)


Can I tell codetools somehow where to look for these functions without building a full blown package?



Cheers
Jannis

______________________________________________
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.

Reply via email to