I want to use R to run dos commands (either by create batch files or
using shell())and I need to write double quotes on the file (or shell
command).  As an easier example, lets take:

> print("hello 'hello' hello")
[1] "hello 'hello' hello"

Lets say instead of the above, I wanted:
"hello "hello" hello"
If possible, how would I do that?

I understand that \ is an escape character, so I tried:

> print("hello \"hello\" hello")
[1] "hello \"hello\" hello"

But that did not work.

TIA, Roger

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to