[R] Call SAS from R
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Aug 24 19:32:52 CEST 2005
Date: Wed, 24 Aug 2005 18:05:44 +0100 (BST)
From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
To: David Forrest <drf5n at maplepark.com>
Cc: "Shin, David" <david.shin at pearson.com>, r-help at stat.math.ethz.ch,
'Don MacQueen' <macq at llnl.gov>, bioconductor at stat.math.ethz.ch
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, ripley at stats.ox.ac.uk
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
More information about the R-help
mailing list