I am trying to use R within a script that will act as a simple command line plot tool. I.e. user pipes in a csv file and they get a plot. I can get to R fine and get the pl
You need something with a distinct event loop --- and the best portable solution is to rely on the (already included) tcltk package. Start with its demos.
The simplest case may be
> library(tcltk)
> tk_messageBox(message="Press a key")
which pops a box you need to acknowledge to proceed.