[R] importing sas datasets

Daniel Nordlund res90sx5 at verizon.net
Mon Apr 23 22:09:47 CEST 2007


Anna,

My comment about var=("  ")  being the problem is probably wrong.  Apparently R and the sas.get function can handle that specification just fine (I have some learning to do myself).  I have a question about the error message below.

> -----Original Message-----
> From: a.martino at crismaitalia.it [mailto:a.martino at crismaitalia.it]
> Sent: Monday, April 23, 2007 8:45 AM
> To: John Kane; Daniel Nordlund; r-help at stat.math.ethz.ch
> Subject: Re: [R] importing sas datasets
> 
> Hi John and Daniel,
> 
> Thanks for your suggestions, I updated line 127 of the
> sas.get function  but after submitting the following
> command:
> 
> c<- sas.get(lib="c:\\ghan", mem="mkds0001", var=("   "),
> format.library="d:\\R\\R-2.4.1",
> sasprog='"C:\\Programmi\\SAS\\SAS 9.1\\sas.exe"') (also
> trying with sasprog="C:\\Programmi\\SAS\\SAS 9.1\\sas.exe")
> 
> the log signaled the following error:
> 
> Errore in system(paste(shQuote(sasprog), shQuote(sasin),
> "-log", shQuote(log.file)),  :
>         unused argument(s) (output = FALSE)

The error says there are unused arguments in the system function call.  So that's where I would focus to try to solve this problem.  However, I can't replicate the problem on my Windows XP Pro system.  So at this point I can't be of much help.  

Sorry I can't be more helpful at this time,

Dan 

Daniel Nordlund
Bothell, WA USA



More information about the R-help mailing list