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

Examples

whereami()
#> ── Running From: ./RtmpI68DxF/callr-scr-a257f20daa3 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
whereami(path_expand = TRUE)
#> ── Running From: /tmp/RtmpI68DxF/callr-scr-a257f20daa3 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────