Skip to content
Prev 29495 / 63424 Next

shQuote and cat

It is precizely a shell command that I am trying to generate. To be specific let's try to have R 'output' the following shell command: 'echo "\"a\""'. This is is a valid command, at least in bash:
bash-3.2$ echo "\"a\""
"a"

Now in R:
echo ""a""
"echo \"\"a\"\""

Whichever way you do it it is not right. Again I think cat('echo "\"a\""') should be printing *echo "\"a\""* (asterics are not a part of the output)