[R] Using pakage foreign and to import SAS file

Rick Bilonick rab45 at pitt.edu
Tue Nov 15 05:22:16 CET 2005


On Mon, 2005-11-14 at 22:55 +0000, Walter R. Paczkowski wrote:
> Hi,
> 
> I'm struggling with foreign to import a SAS file.  The file, for lack of imagination, is d.sas7bdat and is in my root directory (c:\) under Windows XP.  When I type
> 
> read.ssd("c:\\", "d")
> 
> which I think I'm suppose to enter, I get
> 
> SAS failed.  SAS program at C:\DOCUME~1\Owner\LOCALS~1\Temp\Rtmp32758\file19621.sas 
> The log file will be file19621.log in the current directory
> NULL
> Warning messages:
> 1: "sas" not found 
> 2: SAS return code was -1 in: read.ssd("c:\\", "d") 
> 
> I have SAS 9.1 running on my computer so SAS is there.  What am I doing wrong?
> 
> Thanks,
> 
> Walt
> 
> 
I've not used read.ssd but I've had good results with sas.get in Hmisc.

Rick B.




More information about the R-help mailing list