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: ./RtmpFNZcaO/callr-scr-ab6296c9f660a ──────────────────────────
 whereami(path_expand = TRUE)
#> ── Running From: /tmp/RtmpFNZcaO/callr-scr-ab6296c9f660a ───────────────────────