I'm a new subscriber, so please forgive me if this has come up before.
First, here's my technical details:
Mac OS 10.4.5
R: 2.2.1; R Cocoa GUI 1.14 (2129)
X 11 1.1-XFree 86 4.4.0
Ghostscript 8.5.0
I need to create bitmaps of tree distributions to import into Benoit (a
fractal dimensions analysis program). For this purpose, I've downloaded
Ghostscript 8.5.0 and installed it in the Applications folder on my hard
drive. However, I cannot get R to recognize that Ghostscript is available.
I've added the following code (found by searching the R-help archives)
to Renviron:
## Ghostscript
R_GSCMD=${RGSCMD='/usr/bin/gs'}
However, all that did was get me the following error message in R:
Error in bitmap("acaldi.bmp", res = 100) :
sorry, 'gs' cannot be found
/bin/sh: line 1: gs: command not found
Does anyone have any suggestions on what I've done wrong/modifications I
need to make?
Thanks.
Jim Milks
Graduate Student
Environmental Sciences Ph.D. Program
Wright State University
136 Biological Sciences
3640 Colonel Glenn Hwy
Dayton, OH 45435
Ghostscript and R
2 messages · James R. Milks, Paul Roebuck
1 day later
On Sun, 26 Mar 2006, James Milks wrote:
First, here's my technical details:
Mac OS 10.4.5
R: 2.2.1; R Cocoa GUI 1.14 (2129)
X 11 1.1-XFree 86 4.4.0
Ghostscript 8.5.0
I need to create bitmaps of tree distributions to import
into Benoit (a fractal dimensions analysis program). For
this purpose, I've downloaded Ghostscript 8.5.0 and
installed it in the Applications folder on my hard drive.
However, I cannot get R to recognize that Ghostscript is
available.
I've added the following code (found by searching the R-help
archives) to Renviron:
## Ghostscript
R_GSCMD=${RGSCMD='/usr/bin/gs'}
However, all that did was get me the following error message
in R:
Error in bitmap("acaldi.bmp", res = 100) :
sorry, 'gs' cannot be found
/bin/sh: line 1: gs: command not found
Does anyone have any suggestions on what I've done wrong/
modifications I need to make?
$ echo $PATH # where OS will look for binaries $ which gs # look along $PATH for this program FWIW, my version of 'gs' was found in /usr/local/bin. Might want to look there. Adding the command to ~/.Renviron instead might be easier to maintain (in the face of frequent R updates/patches) if you're the only user anyway. # # @(#) .RENVIRON %I% # # R_LIBS=~/Library/R/library R_NO_UNDERLINE=1 R_PAPERSIZE=letter STRICT_R_HEADERS=1 ---------------------------------------------------------- SIGSIG -- signature too long (core dumped)