[R] checking package errors-'require' calls not declared and no visible global function definition

Gabor Grothendieck ggrothendieck at gmail.com
Fri Dec 25 05:00:48 CET 2009


Don't list c in the NAMESPACE file or else you can use the
.Rbuildignore file to completely eliminate any files in your sources
tree from the built source.

On Thu, Dec 24, 2009 at 10:31 PM, rusers.sh <rusers.sh at gmail.com> wrote:
>  Thanks.
>  BTW, if i have three functions, a,b and c. I only want the two functions
> "a" and "b" to be exported for use and "c" is  only used by myself because
> it is not very stable.
>   How to set this?
>  Thanks a lot.
>
> 2009/12/24 Gabor Grothendieck <ggrothendieck at gmail.com>
>>
>> The first one is a warning and the second is a note.  You did not get
>> any errors.
>>
>> On Thu, Dec 24, 2009 at 9:40 PM, rusers.sh <rusers.sh at gmail.com> wrote:
>> > Hi,
>> >  I got two errors after i checking my package. The errors are as
>> > follows,
>> > Error1:
>> > * checking for unstated dependencies in R code ... WARNING
>> > 'library' or 'require' calls not declared from:
>> >  boot np
>> >
>> > Error2:
>> > * checking R code for possible problems ... NOTE
>> > myfunction: no visible global function definition for 'npudensbw'in the
>> > np
>> > package
>> >
>> >  In "myfunction", i have two requires "require(boot)" and "require(np)",
>> > but i have stated them in the DESCRIPTION file using "Depends:boot,np".
>> >  Anybody can give me some ideas to clear these two errors,'require'
>> > calls
>> > not declared and no visible global function definition?
>> >  Thanks a lot.
>> >
>> > --
>> > -----------------
>> > Jane Chang
>> > Queen's
>> >
>> >        [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > R-help at 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.
>> >
>
>
>
> --
> -----------------
> Jane Chang
> Queen's
>




More information about the R-help mailing list