[R] escape character to get printed in output

2006-11-30 Thread roger bos
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

Re: [R] escape character to get printed in output

2006-11-30 Thread Marc Schwartz
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

Re: [R] escape character to get printed in output

2006-11-30 Thread Gabor Grothendieck
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

Re: [R] escape character to get printed in output

2006-11-30 Thread Bos, Roger
] 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