[R] Problem with sas.get function in Hmisc

Jean Vidal vidal.jean at gmail.com
Mon Dec 11 23:06:45 CET 2006


Thomas,

As F Harrel in a preceding message told me that you are the maintainer
of Hmisc package,
I write directly to you, with copy to the Rhelp list in case someone
encountered the same problem and find some benefit in the response.

I used quite often the function sas.get in Hmisc library which I is
very, very useful.
But, as trying to reuse it today it seems not to function anymore.
I tried everything I could imagine this afternoon, with no success.

Here is my last test.
'datatest' is a very simple SAS dataset (V9.1) with only 3 variables,
100 obs, no format.
Sas.get produces this ouput :
> bs2m <- sas.get(library="C:/test","datatest")
Syntaxe du nom de fichier, de r‚pertoire ou de volume incorrecte.
Error in sas.get(library = "C:/test", "datatest") :
        SAS job failed with status 1
In addition: Warning message:
'cmd' execution failed with error code 1 in: shell(cmd, wait = TRUE,
intern = output)

In the R temp directory there is only one file : SaS678418be.3.sas,
containing the usual SAS
program (macro and  macro call).
I can run it from R with :
> sys("sas -sysin C:/Temp/RtmpuC23qb/SaS678418be.3.sas")
character(0)
and I get two files with dict (SaS678418be.1.sas) and data (SaS678418be.2.sas).
So the SAS step seems to work fine.

Do you have an idea of what went wrong ?
I tried to run old R progs with sas.get which used to work, and have
the same problem.

Thank you in advance.

> version
               _
platform       i386-pc-mingw32
arch           i386
os             mingw32
system         i386, mingw32
status
major          2
minor          4.0
year           2006
month          10
day            03
svn rev        39566
language       R
version.string R version 2.4.0 (2006-10-03)




More information about the R-help mailing list