[R-pkg-devel] Replacing dplyr by stats functions

Ahmadou Dicko d|cko@@hm@dou @end|ng |rom gm@||@com
Wed Apr 19 16:41:30 CEST 2023


Hi Adam,

If you don't mind adding another dependency to your package, you can
use the {conflicted} package and its conflict_prefer function.

Best,
Ahmadou


On Wed, Apr 19, 2023 at 2:18 PM A. Kucharski <aqcharski using interia.pl> wrote:
>
> Hi,
>
> I am developing my own package. I have a problem with its new version. Checking on the CRAN server gives 2 warnings like this (critpath is my package):
> Warning: replacing previous import 'dplyr::lag' by 'stats::lag' when loading 'critpath'
> Warning: replacing previous import 'dplyr::filter' by 'stats::filter' when loading 'critpath'
>
> On my machine these warnings show up during Check but before Build starts so at the end I get a message that the number of warnings is 0. I don't use lag or filter at all in my package although I use both of these packages. Reordering the dplyr and stats package names in the Depends of the Description file didn't help. Is it a problem with my code or a conflict between those two packages? Please help me remove these warnings.
>
> Best regards
>
> Adam
>
> Wysłane z aplikacji Poczta dla systemu Windows
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel



-- 
Ahmadou H. DICKO, PhD

Statistical consultant
Mobile: (+221) 77 123 81 69
Skype: dicko.ahmadou.h
Twitter : @dickoah
Gitlab: gitlab/dickoa
Github: github/dickoa



More information about the R-package-devel mailing list