Re: [R] PHP escapeshellcmd() equivalent

2012-08-29 Thread Yihui Xie
Well, then I guess there is no such function in base R, but it should be something like escapeshellcmd = function(x) gsub('[metacharacters]', '\\1', x) Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Am

Re: [R] PHP escapeshellcmd() equivalent

2012-08-29 Thread Roebuck,Paul L
On 8/24/12 9:59 PM, "Yihui Xie" wrote: > On Fri, Aug 24, 2012 at 3:17 PM, Roebuck,Paul L > wrote: >> On 8/24/12 2:59 PM, "R. Michael Weylandt" >> wrote: >> >>> On Fri, Aug 24, 2012 at 2:48 PM, Roebuck,Paul >>> wrote: [Redirected from R-Devel...] Not that I recall running acros

Re: [R] PHP escapeshellcmd() equivalent

2012-08-24 Thread Yihui Xie
You probably mean shQuote(). Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, Aug 24, 2012 at 3:17 PM, Roebuck,Paul L wrote: > On 8/24/12 2:59 PM, "R. Michael Weylandt" > wrote: > >> On

Re: [R] PHP escapeshellcmd() equivalent

2012-08-24 Thread Roebuck,Paul L
On 8/24/12 2:59 PM, "R. Michael Weylandt" wrote: > On Fri, Aug 24, 2012 at 2:48 PM, Roebuck,Paul > wrote: >> [Redirected from R-Devel...] >> >> Not that I recall running across such, but does R (or CRAN package) >> provide something equivalent to PHP's escapeshellcmd() function >> to escape she

Re: [R] PHP escapeshellcmd() equivalent

2012-08-24 Thread R. Michael Weylandt
I don't know PHP, but what does escapeshellcmd() provide over and above what system() / system2() do? Cheers, Michael On Fri, Aug 24, 2012 at 2:48 PM, Roebuck,Paul L wrote: > [Redirected from R-Devel...] > > Not that I recall running across such, but does R (or CRAN package) > provide something

[R] PHP escapeshellcmd() equivalent

2012-08-24 Thread Roebuck,Paul L
[Redirected from R-Devel...] Not that I recall running across such, but does R (or CRAN package) provide something equivalent to PHP's escapeshellcmd() function to escape shell job control, wildcards, etc? __ R-help@r-project.org mailing list https://st