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\'
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
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\\\
,
-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
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
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