pp: Paste Valid Windows Path

Description Usage Arguments Value Examples

Description

Read a Windows path copied on to the clipboard and replace any back slash with a forward slash to render a proper R path.

Usage

1
pp()

Arguments

This

function takes no parameters

Value

A file path string in the form "C:/User/..."

Examples

1
2
3
4
5
Shift + right click file folder and select "Copy as path"
setwd(pp())

Shift + right click on R script file and select "Copy as path"
source(pp())

tboomer/pastepath documentation built on May 31, 2019, 5:44 a.m.