The goal of whereami is to reliably find where command is run from.
whereami() #> ── Running From: Console ─────────────────────────
ggplot(iris) + aes(x=Sepal.Length,y=Sepal.Width) + geom_point() + labs(caption = sprintf('sourced from: %s',whereami()))
If you are running a non RStudio script ie from terminal R/Rscript then
the package falls back to
thisfile(), which has been migrated from
In this case the traceback functionality of
whereami() to return the
line where the function was sourced is not enabled.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.