Re: [Rd] summary( prcomp(*, tol = .) ) -- and 'rank.'

2016-03-28 Thread Martin Maechler
> peter dalgaard > on Fri, 25 Mar 2016 09:41:00 +0100 writes: > As I see it, the display showing the first p << n PCs > adding up to 100% of the variance is plainly wrong. I > suspect it comes about via a mental short-circuit: If we > try to control p using a toleranc

Re: [Rd] sys.function(0)

2016-03-28 Thread peter dalgaard
Dunno, really. Some strange things can happen with nonstandard evaluation, like having a function designed to evaluate something in the parent of its caller, but nonetheless sometimes being called from the command line. So things are sometimes defensively coded. -pd > On 28 Mar 2016, at 00:08

[Rd] documentation / warning when passing a vector as lower/upper bound in stats::integrate()

2016-03-28 Thread Baptiste Auguie
Dear R-dev list, I wonder if stats::integrate shouldn't warn the user when a numeric vector of length > 1 is passed as lower or upper bounds. If a vector is passed, only the first value is used and the others are silently ignored: integrate(sin, lower=0, upper=pi) integrate(sin, lower=0:10, upper