cur_dir: Find the current directory in RStudio

Description Usage Value Author(s) See Also Examples

Description

Returns the current directory of the file, if the IDE is RStudio. Cannot be used if the file is sourced. Use cur_dir_source() instead.

Usage

1

Value

script file directory path

Author(s)

Kelli-Jean Chun, kjchunz@gmail.com

See Also

cur_dir_source, setwd_cur

Examples

1
2
# Add this in your script to change current directory
setwd(cur_dir())

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