Skip to content

[R-pkg-devel] Using plyr::mutate and dplyr::mutate in one package

2 messages · Patrick Schratz, Gábor Csárdi

#
Hi guys,

I?m using both ?plyr? and ?dplyr? in my package, specifically the ?mutate? function of each. I use ?plyr::mutate? ?and ?dplyr::mutate? in two different functions and import both using roxygen2 notation 'importFrom plyr mutate? (the same for dplyr). However, I cannot get rid of the warning message

Warning: replacing previous import ?dplyr::mutate? by ?plyr::mutate? when loading

How is this done correctly?

Cheers, Pat

PhD Student at Department of Geography - GIScience group
Friedrich-Schiller-University Jena, Germany
Tel.: +49-3641-9-48973
Web: https://pat-s.github.io
#
Do not import the functions explicitly, just refer to them as
plyr::mutate and dplyr::mutate.

For the :: references, you do not need to use @importFrom.

Gabor

On Mon, Jun 12, 2017 at 10:44 AM, Patrick Schratz
<patrick.schratz at gmail.com> wrote: