[Rd] Importing from a package with dependencies

From: steven mosher <moshersteven_at_gmail.com>
Date: Sat, 10 Sep 2011 18:03:24 -0700

 I needed to do a little cleanup on my packages ( before trying Rd2Roxygen) and that involved
switching some packages from my Depends list to Imports.

Specifically, I had a dependency on "R.utils", but since I only used one or two functions
(gunzip ) I thought it best to importFrom("R.utils",gunzip) in the namespace and then switch
from depending on R.util to Importing.

However, R.utils depends upon R.oo and R.methodsS3. I removed them as well from the depends.

Now, when I build the package I get the following warning

"library or require call not declared from R.oo

I know this is something stupid I am missing.

I would like to import from R.util because of a name clash with
"raster" ( extract).

Do I still need to declare a depends on R.oo and R.methodsS3?



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun 11 Sep 2011 - 01:06:28 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 Sun 11 Sep 2011 - 15:40:29 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