use_pipes: Use different pipes in your package

Description Usage Arguments Details Value Examples

View source: R/use_pipes.R

Description

The function adds the useful operators to use in your project. These operators include:

Usage

1
use_pipes(path = "R", export = TRUE)

Arguments

path

(character) A path pointing at where to copy the file.

export

If TRUE, the file content is exported to NAMESPACE.

Details

The function:

  1. Copies a file with several pipes 'path/utils-pipes.R' and

  2. Imports the purrrpackage in the project DESCRIPTION file

Value

No return value, called for side effects.

Examples

1
2
3
path <- tempfile()
use_pipes(path)
print(readLines(file.path(path, "utils-pipes.R")))

usethat documentation built on Sept. 20, 2021, 5:08 p.m.