Supported format is listed in r2rtf:::fig_format()
.
Examples
if (FALSE) { # \dontrun{
# Read in PNG file in binary format
file <- tempfile("figure", fileext = ".png")
png(file)
plot(1:10)
dev.off()
rtf_read_figure(file)
# Read in EMF file in binary format
library(devEMF)
file <- tempfile("figure", fileext = ".emf")
emf(file)
plot(1:10)
dev.off()
rtf_read_figure(file)
} # }