[R-SIG-Mac] Ghostscript and R

Paul Roebuck roebuck at mdanderson.org
Mon Mar 27 16:49:16 CEST 2006


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)



More information about the R-SIG-Mac mailing list