% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forestsave.R
\name{cairo_device}
\alias{cairo_device}
\title{Resolve the Cairo device for an output format}
\usage{
cairo_device(file)
}
\arguments{
\item{file}{Character string giving the output path.}
}
\value{
A device function.
}
\description{
Maps the \code{"cairo"} shorthand accepted by \code{forestsave()} onto the
Cairo-backed device for the requested format. Cairo's raster backends are
superseded by \pkg{ragg} and are not offered, so the shorthand applies to
vector formats only.
}
\keyword{internal}
