powered by
Read PNG Figures into Binary Files
rtf_read_png(file)
A character vector of PNG file paths.
a list of binary data vector returned by readBin
readBin
The contents of this section are shown in PDF user manual only.
# 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