[R] sas.get() exit

Nirav Mehta niravmehta.x at gmail.com
Wed Apr 22 01:10:47 CEST 2009


Hi, I'm actually running Linux - is Hmisc broken for that as well? I
saw the previous discussion, but had assumed it was only for Windows
machines.

On Tue, Apr 21, 2009 at 7:04 PM, Nordlund, Dan (DSHS/RDA)
<NordlDJ at dshs.wa.gov> wrote:
>> -----Original Message-----
>> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
>> Behalf Of Nirav Mehta
>> Sent: Tuesday, April 21, 2009 3:46 PM
>> To: r-help at r-project.org
>> Subject: [R] sas.get() exit
>>
>> Hello,
>>
>> I am trying to import SAS files into R using sas.get() in Hmisc. I am
>> running both SAS and R on a UNIX server. I've pasted my command and
>> ensuing errors below:
>>
>> sas.get(lib="EOG", mem="eog3pub00_1")
>> Error in if (status != 0) { : argument is of length zero
>> In addition: Warning message:
>> In sas.get(lib = "EOG", mem = "eog3pub00_1") :
>>   EOG/formats.sc? or formats.sas7bcat  not found. Formatting ignored.
>>
>> I have SAS installed, and am in the directory which contains EOG,
>> which in turn contains "eog3pub00_1", the full name of which is
>> eog3pub00_1.sas7bdat.
>>
>> R.Version() returns:
>> $platform
>> [1] "i686-pc-linux-gnu"
>> ...
>> $version.string
>> [1] "R version 2.8.1 (2008-12-22)"
>>
>> I was not able to find similar error messages anywhere online.
>>
>> Thanks for your help!
>> Nirav
>>
>
> Nirav,
>
> Unfortunately, sas.get from Hmisc is broken (i.e. does not work) on Windows.  There is a fix for the problem.  There have been many posts about this in the archive.  See
>
> http://tolstoy.newcastle.edu.au/R/e2/help/07/04/14217.html
>
> If you need additional help, email back to the list, and I will try to find a previous email I have sent out about this problem and its solution.
>
> Hope this is helpful,
>
> Dan
>
> Daniel J. Nordlund
> Washington State Department of Social and Health Services
> Planning, Performance, and Accountability
> Research and Data Analysis Division
> Olympia, WA  98504-5204
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list