[R-SIG-Mac] png fails under JGR but not in R GUI

Michael Kubovy kubovy at virginia.edu
Wed Oct 18 13:56:35 CEST 2006


Dear r-helpers,

I have reported problems such as these in the past but have not  
received any responses, to my chagrin, since JGR is an excellent GUI.  
But JGR seems to have some bugs in its links to tcl/tk and X11. For  
example, a problem with X11 (which was running at the time):

********************
Under JGR -- fails
********************
 > require(grDevices)
 > png(file="myplot.png", bg="transparent")

Error in X11(paste("png::", filename, sep = ""), width, height,  
pointsize,  :
	unable to start device PNG
In addition: Warning message:
unable to open connection to X11 display ''
********************
R version 2.4.0 (2006-10-03)
powerpc-apple-darwin8.7.0

locale:
C

attached base packages:
[1] "datasets"  "methods"   "stats"     "graphics"  "grDevices"  
"utils"     "base"

other attached packages:
prettyR  lattice     MASS      JGR   iplots   JavaGD    rJava
"1.0-2" "0.14-9" "7.2-29" "1.4-11"  "1.0-5"  "0.3-5" "0.4-11"

********************
Under R-GUI -- succeeds
********************
 > require(grDevices)
[1] TRUE
 > png(file="myplot.png", bg="transparent")
 > plot(1:10)
 > rect(1, 5, 3, 7, col="white")
 > dev.off()
null device
           1
********************
R version 2.4.0 (2006-10-03)
powerpc-apple-darwin8.7.0

locale:
en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"      
"datasets"  "base"

other attached packages:
     MASS  lattice  prettyR
"7.2-29" "0.14-9"  "1.0-2"


_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



More information about the R-SIG-Mac mailing list