Learn R Programming

r2rtf (version 0.2.0)

rtf_read_png: Read PNG Figures into Binary Files

Description

Read PNG Figures into Binary Files

Usage

rtf_read_png(file)

Arguments

file

A character vector of PNG file paths.

Value

a list of binary data vector returned by readBin

Specification

The contents of this section are shown in PDF user manual only.

Examples

Run this code
# NOT RUN {
file <- file.path(tempdir(), "figure1.png")
png(file)
plot(1:10)
dev.off()

# Read in PNG file in binary format
rtf_read_png(file)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab