I want to build a package with some functions i wrote. Now my problem is, that i cannot use the pipe-operator %>% with dplyr. I create the package with roxygen2.
If i write the dplyr-commands without %>%, everything works fine.
inside the code:
#'
#' @import dplyr readr mailR writexl
#' @importFrom dplyr %>%
#' @name %>%
#'
#' @export
#'
I wrote:
DESCRIPTION
LazyData: true
RoxygenNote: 6.0.1
Imports: dplyr
roxygen2 generates:
NAMESPACE
...
importFrom(dplyr,"%>%")
...
%>%
is frommagrittr
if I'm not mistaking. See also #27947844 – Modification