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
On Thu, 2006-11-30 at 15:05 -0500, roger bos wrote:
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
It did work. That's how print represents strings.
Try:
cat(hello \hello\ hello)
hello hello hello
strsplit(hello \hello\ hello, )[[1]]
[1] h e l l o \ h e l l o \h
[16] e l l o
On 11/30/06, roger bos [EMAIL PROTECTED] wrote:
I want to use R to run dos commands (either
] escape character to get printed in output
It did work. That's how print represents strings.
Try:
cat(hello \hello\ hello)
hello hello hello
strsplit(hello \hello\ hello, )[[1]]
[1] h e l l o \ h e l l o \
h
[16] e l l o
On 11/30/06, roger bos [EMAIL PROTECTED] wrote:
I want