Hi Vinh,

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!

the DESCRIPTION file must be written by hand; @import does only add
an import directive to the NAMESPACE file.


Manuel.



On Sun, Oct 10, 2010 at 8:53 AM, Vinh Nguyen<vqngu...@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
vqngu...@uci.edu | http://www.ics.uci.edu/~vqnguyen/
Schedule a meeting: http://tungle.me/VinhNguyen

_______________________________________________
Roxygen-devel mailing list
Roxygen-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel
_______________________________________________
Roxygen-devel mailing list
Roxygen-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel

Reply via email to