Learn R Programming

r2rtf (version 0.1.1)

rtf_read_png: Read PNG figures into Binary Files

Description

Read PNG figures into Binary Files

Usage

rtf_read_png(file)

Arguments

file

a vector of PNG file path

Value

a list of binary data vector returned by readBin

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)

# }

Run the code above in your browser using DataLab