[Rd] Rscript --args -e / R --vanilla --slave --args -e opens an interactive R session

2015-09-22 Thread Henrik Bengtsson
When using Rscript -e , (mistakenly) putting --args in front of -e causes an interactive R session to start that does not quit automatically and that does not display a prompt. For example, {hb}: Rscript --vanilla -e "0" [1] 0 {hb}: Rscript --vanilla -e "0" --args [1] 0 {hb}: Rscript --vanilla -

Re: [Rd] Should as.complex(NaN) -> NA?

2015-09-22 Thread Martin Maechler
> William Dunlap > on Wed, 31 Mar 2010 12:04:42 -0700 writes: > I'm having trouble grokking complex NaN's. This first set > examples using complex(re=NaN,im=NaN) give what I expect >> Re(complex(re=NaN, im=NaN)) > [1] NaN >> Im(complex(re=NaN, im=NaN)) > [

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Duncan Murdoch
On 22/09/2015 9:22 AM, Vinh Nguyen wrote: > On Tue, Sep 22, 2015 at 1:46 AM, Duncan Murdoch > wrote: >> However, Herve's second example does illustrate a bug I can reproduce: >> one character out of 1 was read incorrectly. Could you please try >> his final patch and see if it fixes your AIX p

Re: [Rd] Differences in printing UTF-8 strings to stdout vs. stderr under Windows

2015-09-22 Thread Duncan Murdoch
On 22/09/2015 8:55 AM, Richard Cotton wrote: > It seems that under Windows, some UTF-8 strings that print OK to > stdout do not print correctly to stderr. To reproduce: > > x <- "\ub124" > cat(x, file = stdout()) > ## 네 > cat(x, file = stderr()) > ## > > Original motivating problem here: > http

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Vinh Nguyen
On Tue, Sep 22, 2015 at 1:46 AM, Duncan Murdoch wrote: > However, Herve's second example does illustrate a bug I can reproduce: > one character out of 1 was read incorrectly. Could you please try > his final patch and see if it fixes your AIX problems? Just tried the latest dcf.c from R-dev

[Rd] Differences in printing UTF-8 strings to stdout vs. stderr under Windows

2015-09-22 Thread Richard Cotton
It seems that under Windows, some UTF-8 strings that print OK to stdout do not print correctly to stderr. To reproduce: x <- "\ub124" cat(x, file = stdout()) ## 네 cat(x, file = stderr()) ## Original motivating problem here: https://stackoverflow.com/questions/32696241/how-to-display-a-message-w

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Duncan Murdoch
On 21/09/2015 4:50 PM, Hervé Pagès wrote: > Hi, > > Note that one significant change to read.dcf() that happened since R > 3.0.2 is the addition of support for arbitrary long lines (commit > 63281), which never worked: > >dcf <- paste(c("aa: ", rep(letters, length.out=1)), collapse="") >

Re: [Rd] segfault with readDCF on R 3.1.2 on AIX 6.1 when using install.packages

2015-09-22 Thread Duncan Murdoch
On 21/09/2015 10:20 PM, Vinh Nguyen wrote: > On Mon, Sep 21, 2015 at 2:48 PM, Duncan Murdoch > wrote: >> On 21/09/2015 4:50 PM, Hervé Pagès wrote: >>> Hi, >>> >>> Note that one significant change to read.dcf() that happened since R >>> 3.0.2 is the addition of support for arbitrary long lines (com