[Roxygen-devel] @import tag modifies NAMESPACE but not DESCRIPTION
Manuel J. A. Eugster
Manuel.Eugster at stat.uni-muenchen.de
Thu Oct 14 07:44:38 CEST 2010
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<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
>>
> _______________________________________________
> Roxygen-devel mailing list
> Roxygen-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/roxygen-devel
More information about the Roxygen-devel
mailing list