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 read_xml.

enc

Encoding (default 'UTF-8').

summary

Show summary of SVG file (summary_svg)? (default FALSE)

display

Display SVG on standard display port (display_svg)? (default FALSE)

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]