Paul,

Adding the single quotes fixed the problem!
Very appreciative.
Modou

On Sun, Jun 24, 2012 at 3:52 PM, Paul Murrell <p.murrell@auckland.ac.nz>wrote:

> Hi
>
>
> On 24/06/2012 5:54 p.m., M. Ndiaye wrote:
>
>> I couldn't run PostScriptTrace() from the package "grImport" without an
>> error. At first the postscript program couldn't be found. however the
>> problem persisted after the full path the postscript program was
>> indicated.
>> I read earlier post on the subject in vain. See the codes and output
>> below.
>> The file "Senegal_location_map.ps" was originally a "svg" file from:
>>  http://en.wikipedia.org/wiki/**File:Senegal_location_map.svg<http://en.wikipedia.org/wiki/File:Senegal_location_map.svg>
>> It was saved as "ps" file from Inkscape.
>> Thank you for any assistance
>> Modou
>>
>>> library(grImport)
>>>
>> Loading required package: grid
>> Loading required package: XML
>>
>
> Your problem might be the space in the file path below ...
>
>
>  Sys.setenv(R_GSCMD="C:/Program Files/gs/gs9.05/bin/gswin64c.**exe")
>>>
>>
> ... which you could fix as follows (add single quotes around the outside
> so that the file path it itself surrounded by double quotes) ...
>
>
> Sys.setenv(R_GSCMD='"C:/**Program Files/gs/gs9.05/bin/gswin64c.**exe"')
>
> Paul
>
>  PostScriptTrace("Senegal_**location_map.ps", charpath=F)
>>>
>> Error in PostScriptTrace("Senegal_**location_map.ps", charpath = F) :
>>   status 127 in running command 'C:/Program Files/gs/gs9.05/bin/gswin64c.
>> **exe
>>   -q -dBATCH -dNOPAUSE -sDEVICE=pswrite -sOutputFile=
>>   C:\Users\heman\AppData\Local\**Temp\Rtmp2duW3P\**filefd01d981ff7
>>   -sstdout=Senegal_location_**map2.ps.xml captureSenegal_location_map.**
>> ps'
>>
>>> traceback()
>>>
>> 2: stop(gettextf("status %d in running command '%s'", ret, cmd),
>>        domain = NA)
>> 1: PostScriptTrace("Senegal_**location_map.ps", charpath = F)
>>
>>> sessionInfo()
>>>
>> R version 2.15.0 (2012-03-30)
>> Platform: x86_64-pc-mingw32/x64 (64-bit)
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________**________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
>> PLEASE do read the posting guide http://www.R-project.org/**
>> posting-guide.html <http://www.R-project.org/posting-guide.html>
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
> --
> Dr Paul Murrell
> Department of Statistics
> The University of Auckland
> Private Bag 92019
> Auckland
> New Zealand
> 64 9 3737599 x85392
> paul@stat.auckland.ac.nz
> http://www.stat.auckland.ac.**nz/~paul/<http://www.stat.auckland.ac.nz/~paul/>
>

	[[alternative HTML version deleted]]

