Date: Thu, 28 Apr 2005 11:59:06 -0400
Reply-To: Michael Friendly <friendly@YORKU.CA>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Michael Friendly <friendly@YORKU.CA>
Organization: York University
Subject: Re: calling r, S-Plus from SAS
In-Reply-To: <c017389a0504132308425104ff@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
For R, you have to do something like
x 'path\to\Rterm.exe --vanilla < path\to\myfile.R > myfile.out';
I'm not sure how graphic output works; you'll have to define
the names of graphic output files in your calls to the
output driver, dev()
Google 'rw-FAQ' or go to http://www.r-project.org
SAS Squid wrote:
> I generally work in SAS but have some graphics features I would like to
> run in r of in S-Plus. I would like to do this 'automatically' from SAS
>
> I'm thinking of something along the lines of putting the r code in a text file
> and calling system of x on it; r would expect the data in a certain place,
> and my SAS would drop the data in the right place/filename before invoking r.
>
> x 'r.exe myfile.r';
>
> Does anybody have any experience using r from within SAS like this
> or in a better way ?
>
> Alas, searching for a one word character r to find an archived answer
> is not easy.
>
>
> S.
> sas.squid@gmail.com
--
Michael Friendly Email: friendly@yorku.ca
Professor, Psychology Dept.
York University Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street http://www.math.yorku.ca/SCS/friendly.html
Toronto, ONT M3J 1P3 CANADA