getcrf: Get current R file path

Description Usage Arguments Value Examples

View source: R/general.R

Description

Get current R file path

Usage

1
getcrf(parent = TRUE, pos = 1L)

Arguments

parent

Return R file parent directory. Logical.

Value

character

Examples

1
2
3
4
5
# to return directory of file the function is being called from.
getcrf()

# to return file path
getcrf(FALSE)

iamamutt/mejr documentation built on May 18, 2019, 1:27 a.m.