read_svg: Read SVG file and return XML document

View source: R/svgtools.R

read_svgR 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)

svgtools documentation built on June 22, 2024, 10:35 a.m.