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

2023-04-19 Thread Joshua Ulrich
On Wed, Apr 19, 2023 at 9:19 AM 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 loadi

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

2023-04-19 Thread Ahmadou Dicko
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 wrote: > > Hi, > > I am developing my own package. I have a problem with its new version. > C

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

2023-04-19 Thread Ben Bolker
    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 functio

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

2023-04-19 Thread A. Kucharski
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' b