Re: [Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-28 Thread Prof Brian Ripley
Changing deparse (and internal uses) to only deparse as many lines as are needed solves this and seems to give a noticeable performance post (5-10% or more) on quite a few packages. On Wed, 27 Feb 2008, Prof Brian Ripley wrote: On Wed, 27 Feb 2008, Martin Maechler wrote: Thank you Henrik,

Re: [Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-27 Thread Martin Maechler
Thank you Henrik, HenrikB == Henrik Bengtsson [EMAIL PROTECTED] on Tue, 26 Feb 2008 22:03:24 -0800 writes: {with many superfluous empty statements ( i.e., trailing ; ): HenrikB x - rnorm(1e6); [] HenrikB y - log2(x); # or log10(x) HenrikB w -

Re: [Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-27 Thread Prof Brian Ripley
On Wed, 27 Feb 2008, Martin Maechler wrote: Thank you Henrik, HenrikB == Henrik Bengtsson [EMAIL PROTECTED] on Tue, 26 Feb 2008 22:03:24 -0800 writes: {with many superfluous empty statements ( i.e., trailing ; ): Indeed! HenrikB x - rnorm(1e6); []

Re: [Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-27 Thread Henrik Bengtsson
On Wed, Feb 27, 2008 at 12:56 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Wed, 27 Feb 2008, Martin Maechler wrote: Thank you Henrik, HenrikB == Henrik Bengtsson [EMAIL PROTECTED] on Tue, 26 Feb 2008 22:03:24 -0800 writes: {with many superfluous empty statements (

Re: [Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-27 Thread Richard Pearson
Yes Henrik, I've also noticed this when cutting and pasting code from here: http://ace.acadiau.ca/math/ACMMaC/Rmpi/sample.html Try the .Last function for example. Best wishes Richard. Henrik Bengtsson wrote: On Wed, Feb 27, 2008 at 12:56 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote:

Re: [Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-27 Thread Gabor Grothendieck
On Wed, Feb 27, 2008 at 5:50 AM, Henrik Bengtsson [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 12:56 AM, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Wed, 27 Feb 2008, Martin Maechler wrote: Thank you Henrik, HenrikB == Henrik Bengtsson [EMAIL PROTECTED] on Tue, 26

[Rd] Warnings generated by log2()/log10() are really large/takes a long time to display

2008-02-26 Thread Henrik Bengtsson
x - rnorm(1e6); y - log(x); # or logb(x) or log1p(x) w - warnings(); print(object.size(w)); ## [1] 480 str(w); $ NaNs produced: language log(x) - attr(*, dots)= list() - attr(*, class)= chr warnings y - log2(x); # or log10(x) w - warnings(); print(object.size(w)); ## [1] 8000536 str(w); ##