[Rd] "could not find function" after import

From: Stephanie M. Gogarten <sdmorris_at_u.washington.edu>
Date: Mon, 19 Sep 2011 13:48:13 -0700

I am trying to build a package (GWASTools, submitted to Bioconductor) that uses the "sandwich" package. I have references to "sandwich" in DESCRIPTION:
Imports: methods, DBI, RSQLite, sandwich, survival, DNAcopy


In the code itself is a call to vcovHC:
Vhat <- vcovHC(mod, type="HC0")

I have sandwich version 2.2-7 installed.

When I run R CMD check on my package, I get the following error during checking of examples:
* using R Under development (unstable) (2011-08-29 r56828)

I import sandwich, sandwich depends on zoo, but a function in zoo cannot be found during execution.

I tried to get around this by explicitly including a "require" statement in assocTestRegression:

The example now runs, but I have a warning in R CMD check:
* checking for unstated dependencies in R code ... WARNING
‘library’ or ‘require’ call not declared from: ‘sandwich’

I am not sure why this is a problem, as there is a "require" statement (for a different package) in another function which does not cause any warnings.

Can anyone advise on how to get my package to successfully pass R CMD check?

Stephanie Gogarten
Research Scientist, Biostatistics
University of Washington

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 19 Sep 2011 - 23:37:00 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 20 Sep 2011 - 13:40:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive