Re: [Rd] Benchmark code, but avoid printing

2015-01-02 Thread Gábor Csárdi
Yes, thanks much, this makes a lot of sense. Well, by "better" what I had in mind was something that is reliably close to the time needed for printing. Without actually doing the printing. But I realize this is too much to ask for, and I'll be fine with /dev/null. Thanks for bringing up the textCo

Re: [Rd] Help in building R with minGW

2015-01-02 Thread Simon Urbanek
Please read R-admin section 3.1 - as you'll notice it doesn't say anything about running ./configure since that's only for unix. http://r.research.att.com/man/R-admin.html#Building-from-source Cheers, Simon On Jan 2, 2015, at 12:33 PM, Edoardo Baldoni wrote: > Dear R users, > I would need s

Re: [Rd] Benchmark code, but avoid printing

2015-01-02 Thread Simon Urbanek
On Jan 2, 2015, at 12:02 PM, Gábor Csárdi wrote: > Dear all, > > I am trying to benchmark code that occasionally prints on the screen > and I want to > suppress the printing. Is there an idiom for this? > > If I do > > sink(tempfile) > microbenchmark(...) > sink() > > then I'll be also measur

Re: [Rd] Benchmark code, but avoid printing

2015-01-02 Thread Henrik Bengtsson
On Fri, Jan 2, 2015 at 9:02 AM, Gábor Csárdi wrote: > Dear all, > > I am trying to benchmark code that occasionally prints on the screen > and I want to > suppress the printing. Is there an idiom for this? > > If I do > > sink(tempfile) > microbenchmark(...) > sink() > > then I'll be also measurin

Re: [Rd] Reimplement stats:::plotNode as iterative to avoid recursion limits?

2015-01-02 Thread Martin Maechler
> Gregory R Warnes > on Thu, 1 Jan 2015 18:35:23 -0500 writes: > Hi All, I've gotten a number of reports from users > about gplots::heatmap.2 generating 'node stack > overflow' errors. As it turns out, these errors > originate in stats:::plotNode, and are triggered wh

[Rd] Help in building R with minGW

2015-01-02 Thread Edoardo Baldoni
Dear R users, I would need some help in building R using minGW in windows 8.1. After using the command *configure *(./configure --enable-R-shlib --with-readline=no --with-x=no), I use the command *make. *This results in the following error: [...] make[2]: Leaving directory `/home/Edoardo/r-3.1.2/s

[Rd] Benchmark code, but avoid printing

2015-01-02 Thread Gábor Csárdi
Dear all, I am trying to benchmark code that occasionally prints on the screen and I want to suppress the printing. Is there an idiom for this? If I do sink(tempfile) microbenchmark(...) sink() then I'll be also measuring the costs of writing to tempfile. I could also sink to /dev/null, which i