Plots

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(whereami)
library(ggplot2)

Rmarkdown Caption

ggplot(iris) + 
  aes(x=Sepal.Length,y=Sepal.Width) + 
  geom_point()

ggplot2 Caption

ggplot(iris) + 
  aes(x=Sepal.Length,y=Sepal.Width) + 
  geom_point() + 
  labs(caption = sprintf('sourced from: %s',whereami(path_expand = TRUE)))


Try the whereami package in your browser

Any scripts or data that you put into this service are public.

whereami documentation built on Nov. 7, 2019, 5:08 p.m.