I really like littler is really great for scripting using R. But i don't how to use external graphics device a la gnuplot (for example using Octave). I'm able to produce the desired graph but i have to use Sys.sleep and i don't want to do so, because i want to close it my self in an interactive way or better continue the script without closing the device.
So far this is what my code looks like :
#!/usr/bin/env r -t
suppressMessages(require(Cairo))
CairoX11()
plot(rnorm(1000), pch = 19)
Sys.sleep(50)
# some code without closing the graphics window
My question is : Do you know a way to achieve that ?
Any hint, document, link or code will be appreciated