[Rd] No error when assigning values to an "empty" vector/matrix/array

2014-10-23 Thread Henrik Bengtsson
Assigning one or more values to a vector/matrix/array x for which length(x) == 0 gives no error, e.g. > x <- integer(0) > x[] <- 1:2 > x <- matrix(nrow=0, ncol=1) > x[] <- 1:2 > x[,1] <- 1:2 > x <- array(dim=c(0,1,1)) > x[] <- 1:2 > x[,1,1] <- 1:2 whereas > x <- integer(1) > x[] <- 1:2 Warning

Re: [Rd] Using a custom memory allocation function in R

2014-10-23 Thread Simon Urbanek
SO, On Oct 22, 2014, at 10:53 AM, SO User wrote: > > Heads up: I posted this question on Stackoverflow yesterday > (http://stackoverflow.com/questions/26484103/using-a-custom-memory-allocation-function-in-r). > So far I haven’t gotten a response and I thought this could be an even > better place

Re: [Rd] "make check" fails on lapack.R and stats-Ex.R

2014-10-23 Thread Pacey, Mike
Hi Martyn, Thanks for the analysis on that, and I'll remember that test in future - I've not seen a rounding error quite so finely balanced before. I've been using the "-fp-model precise" advice referenced in that document for a while - apparently it wasn't sufficient for this case. Thanks als

Re: [Rd] "make check" fails on lapack.R and stats-Ex.R

2014-10-23 Thread Martyn Plummer
On Thu, 2014-10-23 at 08:19 +, Pacey, Mike wrote: > As my attachment doesn't seem to have survived transit, I'm cut'n'pasting the > relevant failures here: > > Testing examples for package 'stats' > comparing 'stats-Ex.Rout' to 'stats-Ex.Rout.save' ... > 6466c6466 > < Grand Mean: 291.5937 >

Re: [Rd] "make check" fails on lapack.R and stats-Ex.R

2014-10-23 Thread Prof Brian Ripley
You are using the word 'failure' in a sense I do not recognize. Differences are not of themselves errors and not necessarily failures. I see 'OK', not 'ERROR' here. For the record, other builds using MKL (but gcc not icc) show similar differences, and the top of lapack.R says ## NB: the sign

Re: [Rd] "make check" fails on lapack.R and stats-Ex.R

2014-10-23 Thread Pacey, Mike
As my attachment doesn't seem to have survived transit, I'm cut'n'pasting the relevant failures here: Testing examples for package 'stats' comparing 'stats-Ex.Rout' to 'stats-Ex.Rout.save' ... 6466c6466 < Grand Mean: 291.5937 --- > Grand Mean: 291.5938 12881c12881 < Murder -0.536 0.418 0.34