Skip to content
Prev 304485 / 398503 Next

PHP escapeshellcmd() equivalent

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 <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Wed, Aug 29, 2012 at 11:04 AM, Roebuck,Paul L
<proebuck at mdanderson.org> wrote: