[R-pkg-devel] replacing previous import
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Tue Aug 20 13:42:27 CEST 2019
On 19/08/2019 10:08 p.m., John Harrold wrote:
> Howdy Folks,
>
> I'm getting the following warning:
>
> Found the following significant warnings:
> Warning: replacing previous import ‘gdata::combine’ by
> ‘gridExtra::combine’ when loading
>
> In the R scripts I'm using
> #'@importFrom gridExtra grid.arrange
>
> To only import the function I want, but I'm not sure how to do that in the
> DESCRIPTION file. Is there anything I can do to eliminate this warning or
> is this OK?
You need to look at your NAMESPACE file, not the DESCRIPTION file. It's
likely that Roxygen has included both imports of combine in that file,
and that *is* a problem: only one will be valid. (You can't have two
objects with the same name, but you can import one of them using a
different name.)
If you can't spot the problem, please post either the NAMESPACE file, or
even better, a location of the whole package so we can take a look.
Duncan Murdoch
More information about the R-package-devel
mailing list