Re: [R] how to stop interpretation in system()

2016-07-21 Thread Michael Peng
Yes. I forgot to escape the escape. Thank you so much. 2016-07-21 16:07 GMT-04:00 Sarah Goslee : > You could escape the backslash. > > system("cmd 'a\\tb'") > > > On Thu, Jul 21, 2016 at 4:00 PM, Michael Peng > wrote: > > Hi, > > > > I am trying to use system() to run some command in OS. such a

Re: [R] how to stop interpretation in system()

2016-07-21 Thread Sarah Goslee
You could escape the backslash. system("cmd 'a\\tb'") On Thu, Jul 21, 2016 at 4:00 PM, Michael Peng wrote: > Hi, > > I am trying to use system() to run some command in OS. such as > > system("cmd 'a\tb') > > however, it alway runs > cmd 'ab' > instead of > cmd 'a\tb' > > How can I prevent

[R] how to stop interpretation in system()

2016-07-21 Thread Michael Peng
Hi, I am trying to use system() to run some command in OS. such as system("cmd 'a\tb') however, it alway runs cmd 'ab' instead of cmd 'a\tb' How can I prevent system to interpret 'a\tb' to 'ab'? Thanks [[alternative HTML version deleted]] ___