Dygraph%>% replace Dplyr's

I am writing a package that imports brilliant, digraphs and brilliant. However, whenever I create and download a package, a warning always appears, replacing previous imports by 'dygraphs::%>%' when loading mypkg .

I tried changing the order in DESCRIPTION , but it does not work. In addition, the package uses many dplyr functions, as well as dygraphs', so I can’t just say importFrom , otherwise it will be a long list. So is there a way to not import dygraphs::%>% or dplyr::%>% into my package? Or is there any other way to resolve this warning? Thanks!

+5
source share
1 answer

I don’t think there is a way to β€œnot import” something from the package. You can check the Roxygen2 user manual, but there is no such command in the "import" section. You can still use importFrom for dplyr. You just need to import the following functions:

select mutate filter arrange group_by ungroup summarize left_join tbl_df

I think these are all the functions you need to import, but you can add more when you see errors. It takes no more than 10 minutes to find each function used in the dplyr package.

+5
source

All Articles