cur_dir_source: Find the current directory of a sourced file

Description Usage Value Author(s) See Also Examples

Description

Returns the current directory of the file. Can only be used if the file is sourced. Use cur_dir() if you are not sourcing and working in RStudio.

Usage

1

Value

sourced script file directory path

Author(s)

Kelli-Jean Chun, kjchunz@gmail.com

See Also

cur_dir, setwd_cur

Examples

1
2
# Use when sourcing your script to change current directory
setwd(cur_dir_source())

kelli-jean/easyR documentation built on May 29, 2019, 3:02 a.m.