Skip to content
Prev 172668 / 398506 Next

How to dump plots as bas64 strings?

On Wed, Mar 4, 2009 at 9:17 AM, Patrick Meyer <paterijk at gmail.com> wrote:
This isn't much of an improvement and does not even address the main
concern but as no one has answered note that we can pass the filename
as a character string and it will get "rb" automatically and we can
just use "raw" if we like.  Also n can be any size larger than the file
size (see ?readBin) so if the file size is 10000 or less:

readBin("toto.png", "raw", n = 10000, endian = "little")