The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The goal of whereami is to reliably find where command is run from.
::install_github("yonicd/whereami") remotes
library(whereami)
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.2.2
whereami()
#> ── Running print(x) at README.Rmd, encoding = UTF-
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 rprojroot::thisfile().
In this case the traceback functionality of whereami()
to return the line where the function was sourced is not enabled.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.