Quick Path

Usage

QP(...)

Arguments

...
The directory (or nested directories) within the working directory.

Value

Returns a path.

Description

This function is a wrapper for file.path and getwd.

Examples

QP()
[1] "C:/Users/trinker/GitHub/reports"
QP("PRESENTATION")
[1] "C:/Users/trinker/GitHub/reports/PRESENTATION"
QP("PRESENTATION/figure")
[1] "C:/Users/trinker/GitHub/reports/PRESENTATION/figure"
QP("PRESENTATION", "figure")
[1] "C:/Users/trinker/GitHub/reports/PRESENTATION/figure"

See also

file.path, getwd