win_fix: Fix Single Windows Backslashes

Description Usage Arguments Value Examples

Description

Fix single Windows based backslashes in paths with a single foward slash. By defaukt copying a path from a Windows machine has R unfriendly single backslashes. This function copies a single Windows path from the clipboard maes the necessary single foward slash correction.

Usage

1
win_fix(clip = TRUE, quote = TRUE, copy2clip = interactive())

Arguments

clip

logical. If TRUE the path is copied from the clipboard via the clipr package.

quote

logical. If TRUE the returned path is wrapped with quotes.

copy2clip

logical. If TRUE the returned path is copied to the clipboard.

Value

Returns an R friendly path.

Examples

1
2
3
4
## copy this line to clipboard...
## ~\Packages\qdap\R\cm_code.overlap.R
## Now run...
## win_fix()

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