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

Ben Bolker bbo|ker @end|ng |rom gm@||@com
Wed Apr 19 16:36:32 CEST 2023


     If you use Depends: in your package I think this is unavoidable 
(but, I don't think these should be counted against you as warnings by 
CRAN - they're "Warnings" not "WARNINGs" :-) )

    The only way I know of to avoid this would be to Import: rather than 
Depend:, and import only the functions you need.


On 2023-04-19 4:36 a.m., A. Kucharski 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



More information about the R-package-devel mailing list