read_svg {svgtools} | R Documentation |
Read SVG file and return XML document
Description
Read SVG file and return XML document
Usage
read_svg(file, enc = "UTF-8", summary = FALSE, display = FALSE)
Arguments
file |
A string, a connection, or a raw vector. See |
enc |
Encoding (default 'UTF-8'). |
summary |
Show summary of SVG file ( |
display |
Display SVG on standard display port ( |
Value
XML document with SVG content
Examples
fpath <- system.file("extdata", "fig1.svg", package="svgtools")
svg <- read_svg(file = fpath, summary = TRUE)
[Package svgtools version 1.1.2 Index]