Convert Windows Path

Usage

WP(from.clip = TRUE, quotes = TRUE, copy2clip = interactive())

Arguments

from.clip
logical. If TRUE path is read from the clipboard. If FALSE user inputs path inteactively.
quotes
logical. If TRUE quotes will be added to front/end of the string.
copy2clip
logical. If TRUE attempts to copy the output to the clipboard.

Value

Returns a character vector path with slashes oriented for R.

Description

Reorients Windows path backslashes to forward slashes.

Examples

## WP(FALSE) #using readline
## C:\Users\trinker\Desktop\doc