Saves a card to a file and returns the path for use in knitr chunks.
Arguments
- svg_string
SVG string from
svg_card().- filename
Output filename (without extension).
- format
Output format:
"svg"or"png".- dpi
Rasterization DPI for PNG (default 300).
- dir
Output directory (defaults to knitr figure directory or tempdir()).
- engine
Rendering engine for PNG:
"auto","chrome", or"rsvg".