Is there any way to issue operating system commands and geting back the results, in R? I mean, for instance, in Linux, to execute from R the 'ls' command and getting back a list of files in the current directory, or, equivalently, in Windows/DOS, the 'dir' command? I'm not interested in the 'ls' or 'dir' commands it is just an example. Do you have any comments on this matter? Thanks, --Sergio.
?system On Fri, Mar 9, 2012 at 5:30 PM, Julio Sergio <juliosergio at gmail.com> wrote:> Is there any way to issue operating system commands and geting back the results, > in R? > > I mean, for instance, in Linux, to execute from R the 'ls' command and getting > back a list of files in the current directory, or, equivalently, in Windows/DOS, > the 'dir' command? > > I'm not interested in the 'ls' or 'dir' commands it is just an example. > > Do you have any comments on this matter? > > Thanks, > > --Sergio. >-- Sarah Goslee http://www.functionaldiversity.org
On 10/03/12 11:30, Julio Sergio wrote:> Is there any way to issue operating system commands and geting back the results, > in R? > > I mean, for instance, in Linux, to execute from R the 'ls' command and getting > back a list of files in the current directory, or, equivalently, in Windows/DOS, > the 'dir' command? > > I'm not interested in the 'ls' or 'dir' commands it is just an example. > > Do you have any comments on this matter??system As ??"system commands" would have told you. cheers, Rolf Turner
On Mar 9, 2012, at 5:30 PM, Julio Sergio wrote:> Is there any way to issue operating system commands and geting back > the results, > in R? > > I mean, for instance, in Linux, to execute from R the 'ls' command > and getting > back a list of files in the current directory, or, equivalently, in > Windows/DOS, > the 'dir' command? > > I'm not interested in the 'ls' or 'dir' commands it is just an > example. > > Do you have any comments on this matter?I do have comments, but I have learned to restrain myself in such situations: ?system -- David Winsemius, MD West Hartford, CT