Re: [R] Inconsisten graphics i/o when using Rscript versus GUI

2011-01-21 Thread MacQueen, Don
John, The first thing I would do is create a simpler example, i.e., to help isolate the issue. Here’s a simple example: The contents of a file are: #! /usr/bin/Rscript pdf('test1.pdf') plot(1:10) dev.off() pdf('test2.pdf') plot(10:1) dev.off()

[R] Inconsisten graphics i/o when using Rscript versus GUI

2011-01-20 Thread John Helly
Hi. I'm running R OS X GUI 1.35-dev Leopard build 64-bit. When I run the following code (snippet from a larger code) from the GUI I obtain 2 separate *.pdf files as you would expect from the high-lighted code. However, when I run from Rscript (command-line), I only get the first one. No