library(whereami) library(ggplot2) #> Warning: package 'ggplot2' was built under R version 4.2.2
ggplot(iris) + aes(x=Sepal.Length,y=Sepal.Width) + geom_point()
C:/Users/jonathan.sidi/AppData/Local/Temp/RtmpGg5FE0/Rbuild32a02523680a/whereami/vignettes/plots.Rmd
ggplot(iris) + aes(x=Sepal.Length,y=Sepal.Width) + geom_point() + labs(caption = sprintf('sourced from: %s',whereami(path_expand = TRUE)))