[R] paste? 'cmd /c c:\\pheno\\whap --file c:\\pheno\\smri --alt 1'

2006-09-25 Thread Boks, M.P.M.
Dear R users, This command works (calling a programm -called whap- with file specifiers etc.): system('cmd /c c:\\pheno\\whap --file c:\\pheno\\smri --alt 1 --perm 500', intern=TRUE) Now I need to call it from a loop to replace the 1 by different number, however I get lost using the

Re: [R] paste? 'cmd /c c:\\pheno\\whap --file c:\\pheno\\smri --alt 1'

2006-09-25 Thread Marc Schwartz (via MN)
On Mon, 2006-09-25 at 18:58 +0200, Boks, M.P.M. wrote: Dear R users, This command works (calling a programm -called whap- with file specifiers etc.): system('cmd /c c:\\pheno\\whap --file c:\\pheno\\smri --alt 1 --perm 500', intern=TRUE) Now I need to call it from a loop to

Re: [R] paste? 'cmd /c c:\\pheno\\whap --file c:\\pheno\\smri --alt 1'

2006-09-25 Thread Gabor Grothendieck
Use single outer quotes so that the inner double quotes are not interpreted as the end of the string. cmd - 'cmd /c ...whatever... ' system(cmd, intern = TRUE) On 9/25/06, Boks, M.P.M. [EMAIL PROTECTED] wrote: Dear R users, This command works (calling a programm -called whap- with file