
fig.path
and label
. This function returns the path of figures for the current
chunk by default.fig_path(suffix = "", options = opts_current$get(), number)
.
, it will be treated as the filename extension (e.g.
png
will be used as .png
)fig.cur
if available)fig_path(".pdf", options = list(fig.path = "figure/abc-", label = "first-plot"))
fig_path(".png", list(fig.path = "foo-", label = "bar"), 1:10)
Run the code above in your browser using DataLab