[R-pkg-devel] function name conflict problem

Hugh Parsonage hugh@p@r@on@ge @end|ng |rom gm@||@com
Wed Feb 5 08:31:07 CET 2020


Package karon is the problem. Is that package in your depends or imports?
Does that package use Depends?

On Wed, 5 Feb 2020 at 8:24 am, <sierrastew using mindspring.com> wrote:

> In trying to develop a package to be submitted to CRAN, when I do Install
> and Reload or devtools::check(), I get the warning:
>
>
>
> Warning: replacing previous import 'ellipse::pairs' by 'graphics::pairs'
> when loading 'karon'
>
> Warning: replacing previous import 'MVN::mvn' by 'mgcv::mvn' when loading
> 'karon'
>
>
>
> I need one function each from the packages ellipse and mgcv (I do not need
> pairs from ellipse and mvn from mgcv).  To restrict to the function that I
> need, I have used the commands
>
> @importFrom  ellipse  ellipse
>
> @importFrom  mgcv  in.out
>
>
>
> NAMESPACE includes the lines
>
> importFrom(ellipse,ellipse)
>
> importFrom(mgcv,in.out)
>
>
>
> However, DESCRIPTION does not restrict the functions imported from ellipse
> and mgcv; it has
>
> Imports: MVN, MASS, scatterplot3d, rgl, mgcv, randomForest, rpart,
> partykit,
> Formula, ellipse,..
>
>
>
> Do these warnings need to be solved before submitting to CRAN?
>
> Is it necessary to edit DESCRIPTION  If so, what should be done?
>
> Is there some other potential solution?
>
>
>
> Thanks!
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list