use_pipe {usethis}R Documentation

Use magrittr's pipe in your package

Description

Does setup necessary to use magrittr's pipe operator, ⁠%>%⁠ in your package. This function requires the use roxygen.

Usage

use_pipe(export = TRUE)

Arguments

export

If TRUE, the file R/utils-pipe.R is added, which provides the roxygen template to import and re-export ⁠%>%⁠. If FALSE, the necessary roxygen directive is added, if possible, or otherwise instructions are given.

Examples

## Not run: 
use_pipe()

## End(Not run)

[Package usethis version 2.2.3 Index]