Use magrittr's pipe in your packageSource:
Does setup necessary to use magrittr's pipe operator,
%>% in your package.
This function requires the use roxygen.
Adds magrittr to "Imports" in
Imports the pipe operator specifically, which is necessary for internal use.
Exports the pipe operator, if
export = TRUE, which is necessary to make
%>%available to the users of your package.
TRUE, the file
R/utils-pipe.Ris added, which provides the roxygen template to import and re-export
FALSE, the necessary roxygen directive is added, if possible, or otherwise instructions are given.