RE: [R] capturing output from Win 98 shell

2003-08-14 Thread Simon Fear
Prof Brian Ripley writes: If you insist on using a long-obselete OS, please help us continue ot support it by supplying patches and workarounds. I think we (like Microsoft) are going to have to think seriously about withdrawing support from non-NT-based versions of Windows fairly soon.

RE: [R] capturing output from Win 98 shell

2003-08-14 Thread Adaikalavan Ramasamy
Ligges Cc: [EMAIL PROTECTED] Subject: RE: [R] capturing output from Win 98 shell Believe me, using Win98 is NOT my choice. I would only ever use Unix/Linux. Are there other statisticians similarly limited? Like Simon I am very often limited with choice of software and OS when working for clients

RE: [R] capturing output from Win 98 shell

2003-08-14 Thread Simon Fear
Peter, thanks for quick reply, but I can't drop it: system(dir /b, intern=T, show.output.on.console=T) Error in system(dir /b, intern = T, show.output.on.console = T) : dir not found From: Peter Dalgaard BSA [mailto:[EMAIL PROTECTED] snip Does it help if you drop the COMMAND.COM

RE: [R] capturing output from Win 98 shell

2003-08-14 Thread Simon Fear
Uwe, you suggest So you almost got it, just read ?shell carefully enough: filenames - shell(dir D:\\tmp\\*.sasb7dat /b, intern = TRUE) Unfortunately, this does not work and is why I wrote to Rhelp (OK I used system instead of shell, but I tried shell first); here filenames is assigned

Re: [R] capturing output from Win 98 shell

2003-08-14 Thread Prof Brian Ripley
On 12 Aug 2003, Peter Dalgaard BSA wrote: Simon Fear [EMAIL PROTECTED] writes: system(COMMAND.COM /c dir /b, intern=T, show.output.on.console=T) character(0) print(system(COMMAND.COM /c dir /b, intern=F, show.output.on.console=T)) [1] 0 In both cases here a DOS window opens

Re: [R] capturing output from Win 98 shell

2003-08-14 Thread Peter Dalgaard BSA
Simon Fear [EMAIL PROTECTED] writes: Peter, thanks for quick reply, but I can't drop it: system(dir /b, intern=T, show.output.on.console=T) Error in system(dir /b, intern = T, show.output.on.console = T) : dir not found Oh, dir is a built-in, right?... Better wait for the real

Re: [R] capturing output from Win 98 shell

2003-08-14 Thread Uwe Ligges
Simon Fear wrote: How can I best achieve the following (works in Splus): filenames - dos(dir *.sasb7dat /b) What I am asking, more generically, is: how can I capture the output of a DOS command in R? I have tried using system(COMMAND.COM /c dir /b, intern=T, show.output.on.console=T) where

RE: [R] capturing output from Win 98 shell

2003-08-14 Thread Prof Brian Ripley
I should clarify that `withdrawing support' does not mean that it will no longer work with Win95/98/ME, just that we will no longer attempt to ensure that it does. On Tue, 12 Aug 2003, Simon Fear wrote: Prof Brian Ripley writes: If you insist on using a long-obselete OS, please help us

RE: [R] capturing output from Win 98 shell

2003-08-14 Thread Bashir Saghir (Aztek Global)
Believe me, using Win98 is NOT my choice. I would only ever use Unix/Linux. Are there other statisticians similarly limited? Like Simon I am very often limited with choice of software and OS when working for clients. I've been waiting for about 5 months to get an editor installed on my machine.

Re: [R] capturing output from Win 98 shell

2003-08-14 Thread Peter Dalgaard BSA
Simon Fear [EMAIL PROTECTED] writes: Prof Brian Ripley writes: If you insist on using a long-obselete OS, please help us continue ot support it by supplying patches and workarounds. I think we (like Microsoft) are going to have to think seriously about withdrawing support from

Re: [R] capturing output from Win 98 shell

2003-08-14 Thread Prof Brian Ripley
On Tue, 12 Aug 2003, Uwe Ligges wrote: Simon Fear wrote: Uwe, you suggest So you almost got it, just read ?shell carefully enough: filenames - shell(dir D:\\tmp\\*.sasb7dat /b, intern = TRUE) Unfortunately, this does not work and is why I wrote to Rhelp (OK I used

Re: [R] capturing output from Win 98 shell

2003-08-12 Thread Peter Dalgaard BSA
Simon Fear [EMAIL PROTECTED] writes: system(COMMAND.COM /c dir /b, intern=T, show.output.on.console=T) character(0) print(system(COMMAND.COM /c dir /b, intern=F, show.output.on.console=T)) [1] 0 In both cases here a DOS window opens and lists a couple of hundred files, before giving