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","png", or"pdf".- dpi
Rasterization DPI for PNG (default 300).
- dir
Output directory (defaults to knitr figure directory or tempdir()).
- engine
Rendering engine for PNG/PDF:
"auto","chrome", or"rsvg".