fig.path
and label
. This function returns the path of figures for the current
chunk by default.fig_path(suffix = "", options = opts_current$get())
fig_path(".pdf", list(fig.path = "figure/abc-", label = "first-plot"))
fig_path(1:10, list(fig.path = "foo-", label = "bar"))
Run the code above in your browser using DataLab