Re: [Rd] [R] shQuote and cat

2008-07-24 Thread Wacek Kusnierczyk
Duncan Murdoch wrote: Vadim Organovich wrote: 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: x - 'echo \a\'

Re: [Rd] [R] shQuote and cat

2008-07-23 Thread Vadim Organovich
I feel like it now belongs to r-devel more than to r-help. My output was garbled because I sent the original message as HTML, sorry about that. Your output, \\\a\\\, is what I get too. That is cat(shQuote(shQuote(shQuote(a))), '\n') \\\a\\\ , which I think should be a. Actually, the

Re: [Rd] [R] shQuote and cat

2008-07-23 Thread Duncan Murdoch
On 7/23/2008 2:53 PM, Vadim Organovich wrote: I feel like it now belongs to r-devel more than to r-help. My output was garbled because I sent the original message as HTML, sorry about that. Your output, \\\a\\\, is what I get too. That is cat(shQuote(shQuote(shQuote(a))), '\n') \\\a\\\ ,

Re: [Rd] [R] shQuote and cat

2008-07-23 Thread Vadim Organovich
-project.org Subject: Re: [Rd] [R] shQuote and cat On 7/23/2008 2:53 PM, Vadim Organovich wrote: I feel like it now belongs to r-devel more than to r-help. My output was garbled because I sent the original message as HTML, sorry about that. Your output, \\\a\\\, is what I get too

Re: [Rd] [R] shQuote and cat

2008-07-23 Thread Duncan Murdoch
you should use cat(paste(echo, shQuote('a', type=sh))) echo 'a' Duncan Murdoch From: Duncan Murdoch [EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 2:38 PM To: Vadim Organovich Cc: r-devel@r-project.org Subject: Re: [Rd] [R] shQuote and cat On 7/23

Re: [Rd] [R] shQuote and cat

2008-07-23 Thread Simon Urbanek
To: Vadim Organovich Cc: r-devel@r-project.org Subject: Re: [Rd] [R] shQuote and cat On 7/23/2008 2:53 PM, Vadim Organovich wrote: I feel like it now belongs to r-devel more than to r-help. My output was garbled because I sent the original message as HTML, sorry about that. Your output