I'm used to using ctrl-c to end operations without killing R. But I've used xlsx in this session, which loads Java, which apparently intercepts the ctrl-C. Accordingly, I hit ctrl-C, R died, and I lost a lot of work. I did some looking, and found a thread(http://comments.gmane.org/gmane.comp.lang.r.rosuda.devel/1368) that says: "Yes, at least on Sun JVMs you need to add -Xrs java option so the JVM doesn't steal SIGINT from R (see archives)." So, how do I actually do that? I'm not running java from the command line, I'm using "library(xlsx)". How do I tell R to pass that option to the JVM? Thanks -Ed
Ed Siefker <ebs15242 <at> gmail.com> writes:> > I'm used to using ctrl-c to end operations without killing R. But I've used > xlsx in this session, which loads Java, which apparently intercepts the > ctrl-C. Accordingly, I hit ctrl-C, R died, and I lost a lot of work. > > I did some looking, and found a > thread(http://comments.gmane.org/gmane.comp.lang.r.rosuda.devel/1368) > that says: > > "Yes, at least on Sun JVMs you need to add -Xrs java option so the JVM > doesn't steal SIGINT from R (see archives)." > > So, how do I actually do that? I'm not running java from the command line, > I'm using "library(xlsx)". How do I tell R to pass that option to the JVM? > Thanks > -Ed > >You might try #set the java.parameters option to the rs flags. options(java.parameters="-Xmx512mrs") #check the option set getOption("java.parameters") Good Luck Joe