svg <- svg_card("FAR", list(), list())
file_name <- tempfile(fileext = ".png")
# High-quality PNG with Chrome rendering
if (FALSE) # Requires an external Chrome/Chromium installation.
if (chrome_available()) {
png_path <- svg_to_png_chrome(svg, file_name, dpi = 300)
}
Run the code above in your browser using DataLab