Not that I recall running across such, but does R natively provide something equivalent to PHP's escapeshellcmd() function to escape shell job control, wildcards, etc?