% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/knitr.R
\name{save_card_for_knitr}
\alias{save_card_for_knitr}
\title{Save card and return path for knitr}
\usage{
save_card_for_knitr(
  svg_string,
  filename = "card",
  format = c("svg", "png"),
  dpi = 300,
  dir = NULL,
  engine = c("auto", "chrome", "rsvg")
)
}
\arguments{
\item{svg_string}{SVG string from \code{svg_card()}.}

\item{filename}{Output filename (without extension).}

\item{format}{Output format: \code{"svg"} or \code{"png"}.}

\item{dpi}{Rasterization DPI for PNG (default 300).}

\item{dir}{Output directory (defaults to knitr figure directory or tempdir()).}

\item{engine}{Rendering engine for PNG: \code{"auto"}, \code{"chrome"}, or \code{"rsvg"}.}
}
\value{
Path to the saved file.
}
\description{
Saves a card to a file and returns the path for use in knitr chunks.
}
