Re: [R] use of "input" in system()

2009-05-01 Thread Duncan Murdoch
On 30/04/2009 12:54 PM, Mike Miller wrote: On Fri, 24 Apr 2009, Duncan Murdoch wrote: On 4/24/2009 10:29 AM, Mike Miller wrote: First, it looks like there is bug in the documentation... According to the documentation for system(): http://stat.ethz.ch/R-manual/R-patched/library/base/html/sys

Re: [R] use of "input" in system()

2009-04-30 Thread Wacek Kusnierczyk
Wacek Kusnierczyk wrote and forgot to add references: > > it doesn't seem to be the usual way of explaining the matters. the bash > reference manual [1, sec. 3.6.1] (see also man bash) says: > [1] http://www.gnu.org/software/bash/manual/bashref.html > > in peters' expert shell scripting [2, c

Re: [R] use of "input" in system()

2009-04-30 Thread Wacek Kusnierczyk
Mike Miller wrote: > On Fri, 24 Apr 2009, Duncan Murdoch wrote: > >> On 4/24/2009 10:29 AM, Mike Miller wrote: >> >>> First, it looks like there is bug in the documentation... >>> >>> According to the documentation for system(): >>> >>> http://stat.ethz.ch/R-manual/R-patched/library/base/html/syste

Re: [R] use of "input" in system()

2009-04-30 Thread Mike Miller
On Fri, 24 Apr 2009, Duncan Murdoch wrote: On 4/24/2009 10:29 AM, Mike Miller wrote: First, it looks like there is bug in the documentation... According to the documentation for system(): http://stat.ethz.ch/R-manual/R-patched/library/base/html/system.html input if a character vector is

Re: [R] use of "input" in system()

2009-04-24 Thread Mike Miller
On Fri, 24 Apr 2009, Mike Miller wrote: On Fri, 24 Apr 2009, Mike Miller wrote: I am running bash, but system calls go to sh. I want to be able to put that input string ("0005") into a variable and do something like this: system( "i=`cat /dev/stdin` ; run_script > file${i}.out" , input=spr

Re: [R] use of "input" in system()

2009-04-24 Thread Mike Miller
On Fri, 24 Apr 2009, Mike Miller wrote: I am running bash, but system calls go to sh. I want to be able to put that input string ("0005") into a variable and do something like this: system( "i=`cat /dev/stdin` ; run_script > file${i}.out" , input=sprintf("%04d", i) ) In sh, both of these

[R] use of "input" in system()

2009-04-24 Thread Mike Miller
First, it looks like there is bug in the documentation... According to the documentation for system(): http://stat.ethz.ch/R-manual/R-patched/library/base/html/system.html input if a character vector is supplied, this is copied one string per line to a temporary file, and the standa

Re: [R] use of "input" in system()

2009-04-24 Thread Duncan Murdoch
On 4/24/2009 10:29 AM, Mike Miller wrote: First, it looks like there is bug in the documentation... According to the documentation for system(): http://stat.ethz.ch/R-manual/R-patched/library/base/html/system.html input if a character vector is supplied, this is copied one string per

[R] use of "input" in system()

2009-04-24 Thread Mike Miller
First, it looks like there is bug in the documentation... According to the documentation for system(): http://stat.ethz.ch/R-manual/R-patched/library/base/html/system.html input if a character vector is supplied, this is copied one string per line to a temporary file, and the standa