Hi,

I am working under Linux and have an executable R script like this:

#! /usr/bin/env Rscript
<script logic>
X11()
plot(data, ...) # as placeholder for some wireframe plot
readline(prompt = "Hit <Return> to quit.")

X11() and readline() are only run, if no other device is requested. My problem now is, that the device is opened, the plot drawn, but script does not wait to see a key pressed - it quits immediately.

As far as I understand this might be an issue of working in non-interactive mode. However, is there a reliable way to ask a script to pause?

TIA
Christian

	[[alternative HTML version deleted]]

