trelliscope (version 0.9.7)

encodePNG: base64 Encoding of a .png File

Description

base64 Encoding of a .png File

Usage

encodePNG(plotLoc)

Arguments

plotLoc
location of a png file on disk to encode as a base64 string

Examples

Run this code
f <- tempfile(fileext = ".png")
png(f)
plot(1:10)
dev.off()
encodePNG(f)

Run the code above in your browser using DataLab