whereami (version 0.2.0)

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, tag = NULL)

Value

character

Arguments

path_expand

logical, expand relational path, Default: FALSE

tag

character, optional tag for the call, Default: NULL

Author

Jonathan Sidi

Examples

Run this code
 whereami()
 whereami(path_expand = TRUE)

Run the code above in your browser using DataLab