[R] building package

Duncan Murdoch murdoch.duncan at gmail.com
Sat Jan 22 02:29:32 CET 2011


On 11-01-21 3:33 PM, las65 at buffalo.edu wrote:
> I have built a package that I would like to submit to the CRAN. When I perform a R CMD
> check I get the following warning:
> * checking Rd cross-references ... WARNING
> Error in .find.package(package, lib.loc) :
>    there is no package called 'foreign'
> Calls:<Anonymous>  ->  lapply ->  FUN ->  .find.package
> Execution halted
>
> I believe this has to do with the fact I use mapply function utilizing internal
> functions I have within the package? Am I wrong in this assumption? How would I remedy
> this in order to get rid of the warning?

This message is about your documentation files, not your R code.  Search 
your .Rd files for "foreign" and either remove the reference, or add a 
Depends statement to your DESCRIPTION saying you depend on the foreign 
package.

Duncan Murdoch

>
> Any advice is appreciated.
> Thank you
> Lori
>
> ______________________________________________
> 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.



More information about the R-help mailing list