When I try citypro <- sas.get('c:/ndri/cvar/data', member = 'citypro2') I get the following errors and warnings: 'sas' is not recognized as an internal or external command, operable program or batch file. 'less' is not recognized as an internal or external command, operable program or batch file. Error in sas.get("c:/ndri/cvar/data", member = "citypro2") : SAS job failed with status 1 In addition: Warning messages: 1: c:/ndri/cvar/data/formats.sc? or formats.sas7bcat not found. Formatting ignored. in: sas.get("c:/ndri/cvar/data", member = "citypro2") 2: cmd execution failed with error code 1 in: shell(cmd, wait = TRUE) 3: cmd execution failed with error code 1 in: shell(cmd, wait = TRUE) 'rm' is not recognized as an internal or external command, operable program or batch file. I have no idea what these mean.....any help appreciated thanks Peter Peter L. Flom, PhD Assistant Director, Statistics and Data Analysis Core Center for Drug Use and HIV Research National Development and Research Institutes 71 W. 23rd St www.peterflom.com New York, NY 10010 (212) 845-4485 (voice) (917) 438-0894 (fax)
On Wed, 01 Oct 2003 14:02:15 -0400, "Peter Flom" <flom at ndri.org> wrote :>When I try > > citypro <- sas.get('c:/ndri/cvar/data', member = 'citypro2') > > >I get the following errors and warnings: > > >'sas' is not recognized as an internal or external command, >operable program or batch file.That's an S-PLUS function rather than an R function, isn't it? Does some R package supply sas.get? I believe the S-PLUS implementation requires that you have SAS installed, and it looks like the error message is saying that you don't. But if you're using S-PLUS, you'd be better asking on the s-news mailing list. Duncan Murdoch
It's actually in the Hmisc package. The error looks like Hmisc hasn't been attached yet, so you might try library(Hmisc) first. In addition, it does appear from the help file that you need SAS installed to output the ASCII files that are required to import the data. HTH, Jim James W. MacDonald Affymetrix and cDNA Microarray Core University of Michigan Cancer Center 1500 E. Medical Center Drive 7410 CCGC Ann Arbor MI 48109 734-647-5623>>> Duncan Murdoch <dmurdoch at pair.com> 10/01/03 02:23PM >>>On Wed, 01 Oct 2003 14:02:15 -0400, "Peter Flom" <flom at ndri.org> wrote :>When I try > > citypro <- sas.get('c:/ndri/cvar/data', member = 'citypro2') > > >I get the following errors and warnings: > > >'sas' is not recognized as an internal or external command, >operable program or batch file.That's an S-PLUS function rather than an R function, isn't it? Does some R package supply sas.get? I believe the S-PLUS implementation requires that you have SAS installed, and it looks like the error message is saying that you don't. But if you're using S-PLUS, you'd be better asking on the s-news mailing list. Duncan Murdoch ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Thanks to all who responded Marc Schwartz wrote <<<<< A quick follow up. I installed Frank's Hmisc under R 1.8.0 beta. If Hmisc is not attached (ie. library(Hmisc)), you get:> citypro <- sas.get('c:/ndri/cvar/data', member = 'citypro2')Error: couldn't find function "sas.get" which you would reasonably expect. Thus, it seems more likely that Dr. Flom either does not have SAS on his system or perhaps the SAS executable file (sas.exe? IIRC) is not in Dr. Flom's 'PATH' on his system if SAS is installed.>>>This does seem to be the problem Thanks again Peter