Learn R Programming

linguisticsdown (version 1.2.0)

include_graphics_latex: Wrapper of knitr::include_graphics for PDF Output

Description

Deals 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.

Usage

include_graphics_latex(path, alt_path = NULL, handler = function(path)
  knitr::asis_output(paste("View", tools::file_ext(path), "at", path)),
  ...)

Arguments