I'd like to save a plot image directly to the database.
Is the best way in R to do this:
Ideally I'd like to combine steps 1 and 2 above by simply write the png image to a binary connection. Does R support this?
No, the graphics devices are file-based, so your steps 1-3 are correct. You need a fourth to unlink the temporary file but that is about it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With