LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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>
Comments:     RFC822 error: <W> TO field duplicated. Last occurrence was
              retained.
From:         Michael Friendly <friendly@YORKU.CA>
Organization: York University
Subject:      Re: calling r, S-Plus from SAS
Comments: To: sas-l@uga.edu
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


Back to: Top of message | Previous page | Main SAS-L page