repath: Windows path to R string

Description Usage Arguments Details Value Examples

View source: R/statTools_code_OTHER.R

Description

Reads the clipboard (with the copied windows path) and returns (and writes) in it a string to be pasted in an R environment.

Usage

1
repath(writecb = TRUE)

Arguments

writecb

Defaults to TRUE. If TRUE, the changed path to be read in R will be writted in the clipboard so that it can be pasted in R. Done via

Details

repath() has only two parameters. One is write, and the other is the windows path already copied in the clipboard. If the copied path does not exist, the working directory is returned with a warning.

Value

Returns a string with the new path adapted for R or the working directory if it did not exist.

Examples

1
2
3
4
5
6
## Not run: 
# copy an R path from Windows and do 
repath()
# now paste where you need the adapted path. Voila!

## End(Not run)

gcastella/statTools documentation built on May 16, 2019, 11:10 p.m.