[Rd] Bug in R -e "command"

Sklyar, Oleg (London) osklyar at ahl.com
Mon May 10 10:50:59 CEST 2010


Hi Dirk, all:

your answer prompted me to look in another place, and yes I need to
withdraw the bug report: it was a problem on our side.

Thanks,
Oleg


Dr Oleg Sklyar
Research Technologist
AHL / Man Investments Ltd
+44 (0)20 7144 3803
osklyar at maninvestments.com 

> -----Original Message-----
> From: Dirk Eddelbuettel [mailto:edd at debian.org] 
> Sent: 07 May 2010 15:43
> To: Sklyar, Oleg (London)
> Cc: r-devel at r-project.org
> Subject: Re: [Rd] Bug in R -e "command"
> 
> 
> On 7 May 2010 at 15:23, Sklyar, Oleg (London) wrote:
> | Hi all:
> | 
> | since about a month we encountered a problem with R -e 
> command: spaces
> | in the "command" of R -e "command" are no more tolerated. This same
> | issue affects 2.11 patched (05-05-2010), 2.10.1, and 
> current devel (at
> | least the one of two weeks ago).
> | 
> | (I skip the mid of the printouts, replaced with ...)
> | 
> | * R -e "message('aaa aaa')"
> | ARGUMENT 'aaa')' __ignored__
> 
> Isn't that a shell quoting issue?  I tend to keep the 
> apostrophe on the
> outside and the double-quote on the inside:
> 
> edd at ron:~> R --slave -e 'message("aaa aaa")'
> aaa aaa
> edd at ron:~> r -e 'message("aaa aaa")'
> aaa aaa
> edd at ron:~> Rscript -e 'message("aaa aaa")'
> aaa aaa
> 
> but also note
> 
> edd at ron:~> R --slave -e "message(\"aaa aaa\")"
> aaa aaa
> edd at ron:~> R --slave -e "message('aaa aaa')"
> aaa aaa
> edd at ron:~> 
> 
> so I can't even replicate your issue.  What what it's worth, 
> the cut&paste
> above came from M-x shell inside Emacs.
> 
> edd at ron:~> dpkg -l r-base-core littler bash emacs23 | tail -4
> ii  bash           4.1-3          The GNU Bourne Again SHell
> ii  emacs23        23.1+1-5       The GNU Emacs editor (with 
> GTK+ user interfa
> ii  littler        0.1.3-1        GNU R scripting and 
> command-line front-end
> ii  r-base-core    2.11.0-1       GNU R core of statistical 
> computation and gr
> edd at ron:~> 
> 
> | 
> | 
> | R version 2.11.0 Patched (2010-05-05 r51914)
> | Copyright (C) 2010 The R Foundation for Statistical Computing
> | ...
> | 
> | > message('aaa
> | + 
> | + 
> | 
> | * /releases/R/2.10/bin/R -e "message('aaa aaa')"
> | ARGUMENT 'aaa')' __ignored__
> | 
> | 
> | R version 2.10.1 Patched (2010-03-27 r51474)
> | Copyright (C) 2010 The R Foundation for Statistical Computing
> | ...
> | 
> | > message('aaa
> | + 
> | + 
> | 
> | WORKING OLD VERSION:
> | 
> | * /share/R/20090611/bin/R -e "message('aaa aaa')"
> | 
> | R version 2.9.0 (2009-04-17)
> | Copyright (C) 2009 The R Foundation for Statistical Computing
> | ...
> | 
> | > message('aaa aaa')
> | aaa aaa
> | > 
> | > 
> | 
> | 
> | Dr Oleg Sklyar
> | Research Technologist
> | AHL / Man Investments Ltd
> | +44 (0)20 7144 3803
> | osklyar at maninvestments.comno more 
> | 
> | 
> **********************************************************************
> |  Please consider the environment before printing this email 
> or its attachments.
> | The contents of this email are for the named addressees 
> ...{{dropped:19}}
> | 
> | ______________________________________________
> | R-devel at r-project.org mailing list
> | https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> -- 
>   Regards, Dirk
> 

**********************************************************************
 Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees ...{{dropped:19}}



More information about the R-devel mailing list