Returns the file that a command is run from.

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

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

Jonathan Sidi

Examples

 whereami()
#> ── Running From: /home/runner/work/_temp/7a6570a7-4eb5-4e2a-a9f8-61be4498307e ──
 whereami(path_expand = TRUE)
#> ── Running From: /home/runner/work/_temp/7a6570a7-4eb5-4e2a-a9f8-61be4498307e ──