whereami (version 0.1.8.1)

whereami: Return where the script is run from

Description

Returns the file that a command is run from.

If traceback is available then the line that it was run from is also returned.

Usage

whereami(path_expand = FALSE)

Arguments

path_expand

logical, expand relational path, Default: FALSE

Value

character

Examples

Run this code
# NOT RUN {
 whereami()
 whereami(path_expand = TRUE)
# }

Run the code above in your browser using DataLab