Date: Wed, 24 Aug 2005 18:05:44 +0100 (BST)
From: Prof Brian Ripley <[EMAIL PROTECTED]>
To: David Forrest <[EMAIL PROTECTED]>
Cc: "Shin, David" <[EMAIL PROTECTED]>, r-help@stat.math.ethz.ch,
     'Don MacQueen' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: [R] Call SAS from R

On Wed, 24 Aug 2005, David Forrest wrote:

> On Wed, 24 Aug 2005, Shin, David wrote:
> ...
>>> system("c:\\program files\\sas institute\\v8\\sas.exe test")
>> Warning message:
>> c:\program not found
> 
> Escape the spaces too.  It is trying to run the program c:\program or
> c:\progra~1\sas

Sorry that does not work.  The Windows way is to quote it: e.g.

system('"c:/Program Files/Mozilla Firefox/firefox.exe"')

works (note the two sets of quotes), and this is explained with an example 
on the help page ?system, so please do as the posting guide asks and read 
the documentation ....

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to