library(rsvg)
str <- charToRaw('<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg">
<style>
circle {
fill: gold;
stroke: maroon;
stroke-width: 10px;
}
</style>
<circle cx="150" cy="150" r="100" />
</svg>')
rsvg_png(str, file = 'ex1.png') # repeat. I want to remove the save but render on GUI
How do I have image in a pop-up? Everytime I make change, I have to save an image, open it and repeat. with ggplot2
if there is a plot object once typing it on GUI console an image is shown.
I've tried
str
plot.new()
str
dev.off()
I've attempted various combinations of plot and printing the string but in vain. Any suggestions that can render the SVG in a pop-up with R GUI console?