Re: [R] checkUsage from codetools shows errors when function uses functions from loaded packages

2013-04-10 Thread Jannis
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. Best Jannis On 08.04.2013 21:03, Duncan Murdoch wrote: On

Re: [R] checkUsage from codetools shows errors when function uses functions from loaded packages

2013-04-10 Thread R. Michael Weylandt
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

[R] checkUsage from codetools shows errors when function uses functions from loaded packages

2013-04-08 Thread Jannis
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

Re: [R] checkUsage from codetools shows errors when function uses functions from loaded packages

2013-04-08 Thread Jannis
Thanks for your reply, Duncan. I hoped for an auutomatic way without manually having to load the packages to exist ... Perhaps this time this is not the case. Cheers Jannis On 08.04.2013 20:25, Duncan Murdoch wrote: On 08/04/2013 2:12 PM, Jannis wrote: Dear list members, I frequently

Re: [R] checkUsage from codetools shows errors when function uses functions from loaded packages

2013-04-08 Thread Duncan Murdoch
On 08/04/2013 2:12 PM, Jannis wrote: 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:

Re: [R] checkUsage from codetools shows errors when function uses functions from loaded packages

2013-04-08 Thread Duncan Murdoch
On 13-04-08 2:29 PM, Jannis wrote: Thanks for your reply, Duncan. I hoped for an auutomatic way without manually having to load the packages to exist ... Perhaps this time this is not the case. That doesn't make sense. How could checkUsage possibly know what packages you plan to attach if