[Roxygen-devel] @import tag modifies NAMESPACE but not DESCRIPTION

Vinh Nguyen vqnguyen at uci.edu
Thu Oct 14 00:59:40 CEST 2010


Any thoughts on this from the folks that use the @import tag?  Is my
assumption that the DESCRIPTION file should be updated wrong?  Let me
know, thanks!

-- Vinh

On Sun, Oct 10, 2010 at 8:53 AM, Vinh Nguyen <vqnguyen at uci.edu> wrote:
> Dear list,
>
> When I ran R CMD check on my package, I get a warning saying I should
> do something like importFrom("methods", "show") since I was using the
> show generic function.
>
> I placed
> ##' @import methods
> into the package documentation and it generated "import(methods)" in
> the NAMESPACE file.  However, I get an error with R CMD check:
> * checking package name space information ... OK
> * checking package dependencies ... ERROR
> Namespace dependencies not required:
>  methods
>
> I'm guessing that we should have "Imports: methods" in the DESCRIPTION
> file as well.  Should roxygen be doing this or am I missing something?
>  I'm using use.Rd2=TRUE.  Thanks.
>
> Vinh
> --
> Vinh Nguyen
> Department of Statistics
> Donald Bren School of ICS
> 2231 Bren Hall
> University of California, Irvine
> Irvine, CA 92607
> vqnguyen at uci.edu | http://www.ics.uci.edu/~vqnguyen/
> Schedule a meeting: http://tungle.me/VinhNguyen
>


More information about the Roxygen-devel mailing list