copy_path: Pipeable Clipboard Copying

Description Usage Arguments Value Examples

Description

This convenience function wraps write_clip to copy the previous output in the chain to the clipboard.

Usage

1

Arguments

x

An object to be written to the system clipboard.

...

Other arguments passed to write_clip.

Value

Returns x but attempts to copy content to the clipboard.

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(magrittr)
files %>%
    parse_path() %>%
    swap_regex("^(P|R)", "oops") %>%
    copy_path()

## End(Not run)

trinker/pathr documentation built on May 31, 2019, 9:41 p.m.