whereami: Return where the script is run from

View source: R/whereami.R

whereamiR Documentation

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)

Arguments

path_expand

logical, expand relational path, Default: FALSE

tag

character, optional tag for the call, Default: NULL

Value

character

Author(s)

Jonathan Sidi

Examples

 whereami()
 whereami(path_expand = TRUE)

whereami documentation built on Dec. 28, 2022, 2:40 a.m.