View source: R/include_graphics2.R
include_graphics_latex | R Documentation |
knitr::include_graphics
for PDF OutputDeals with URL and GIFs. If an url is passed to
path
of include_graphics
,
the figure is automatically downloaded and included
using local relative path. If a figure with .gif
extension is included, a piece of text, rather than the
figure, is inserted.
include_graphics_latex(
path,
alt_path = NULL,
handler = function(path) knitr::asis_output(paste("View", tools::file_ext(path), "at",
path)),
...
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.