How can I keep a graphics device open in R batch mode?

I asked this question on StackOverflow and yet to get an answer. I hope somebody could help out here:


I am trying to use the DataEntry package in R batch mode in Windows. Specifically I am using

Rscript -e "DataEntry::DataEntry()"

The code works, but once the GUI for the form opens, it closes immediately and R exits. I have noticed similar behaviour in the past, whilst trying to show plots using the R graphics device in batch mode.

I did a little searching online and found something that actually suspends complete execution of the script, which I implemented thus:

Rscript -e "DataEntry::DataEntry(); readLines(file('stdin'))"

It halted the execution alright and also displayed the expected window, but the GUI never completely loads and thus is non-operable.

The DataEntry package works with RGtk2, gWidgets2RGtk2 and gWidgets2.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.