[R-pkg-devel] RCMD Note - why did I have to do this?

Glenn Schultz glennmschultz at me.com
Sun Dec 20 21:04:03 CET 2015


Hi Hadley,

You are correct - 
#' @import method
NULL

removes the Note - This is a mental semantic error on my part.  Whenever I think import my brain says this "imports foo" and I type #' @imports foo.

Thanks for you time and sorry about the confusion on my part
Glenn

On Dec 20, 2015, at 01:37 PM, Hadley Wickham <h.wickham at gmail.com> wrote:

You didn't include the NOTE you saw, and this isn't valid roxygen:

#' @imports methods::fields

So it's a bit hard to tell what the problem is.

Hadley


On Sun, Dec 20, 2015 at 12:02 PM, Glenn Schultz <glennmschultz at me.com> wrote:
Hello all,

I need some help understanding namespace and methods.

I received a note from RCMD imports methods fields...

I changed my file from
#' @import methods
NULL
to include the following:

#' @imports methods::fields
NULL

such that it now reads

#' @import methods
NULL

#' @imports methods::fields
NULL

This removed the note - I am not just sure why I had to do this - I use
devtools and Roxygen

Thanks,
Glenn
______________________________________________
R-package-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel



-- 
http://had.co.nz/


More information about the R-package-devel mailing list