External graphics device for littler or rscript

I really like that littler is really great for scenarios using R. But I do not use an external graphics device a la gnuplot (for example, using Octave). I can create the desired schedule, but I need to use Sys.sleep, and I do not want to do this because I want to close it myself in an interactive way or is it better to continue the script without closing the device.

So far this looks like my code:

#!/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 this?

Any hints, document, link or code will be appreciated

+5
source share
2 answers

, "" ( "" ), . , ( ) .

tcltk tkrplot; . RGtk2 , / Windows, Gtk2 . --- R GUI .

+2

, , R. script R par(ask=T). , , R.

+2

All Articles