Re: [Rd] How to infer default width and height for a device?

2011-11-05 Thread Henrik Bengtsson
On Sat, Nov 5, 2011 at 3:08 PM, Henrik Bengtsson wrote: > Hi. > > GENERAL: > Is there a general method for inferring default device settings, > particularly 'width' and 'height', that works for all devices?  AFAIK, > the answer is no, but there might be functions out there that I don't > know of.

[Rd] How to infer default width and height for a device?

2011-11-05 Thread Henrik Bengtsson
Hi. GENERAL: Is there a general method for inferring default device settings, particularly 'width' and 'height', that works for all devices? AFAIK, the answer is no, but there might be functions out there that I don't know of. POSTSCRIPT SPECIFIC: If not, I'm considering implementing such a met

Re: [Rd] Efficiency of factor objects

2011-11-05 Thread Patrick Burns
Perhaps 'data.table' would be a package on CRAN that would be acceptable. On 05/11/2011 16:45, Jeffrey Ryan wrote: Or better still, extend R via the mechanisms in place. Something akin to a fast factor package. Any change to R causes downstream issues in (hundreds of?) millions of lines of dep

Re: [Rd] Efficiency of factor objects

2011-11-05 Thread Jeffrey Ryan
Or better still, extend R via the mechanisms in place. Something akin to a fast factor package. Any change to R causes downstream issues in (hundreds of?) millions of lines of deployed code. It almost seems hard to fathom that a package for this doesn't already exist. Have you searched CRAN? Je

Re: [Rd] Efficiency of factor objects

2011-11-05 Thread Milan Bouchet-Valat
Le vendredi 04 novembre 2011 à 19:19 -0400, Stavros Macrakis a écrit : > R factors are the natural way to represent factors -- and should be > efficient since they use small integers. But in fact, for many (but > not all) operations, R factors are considerably slower than integers, > or even chara

Re: [Rd] Identify \Sexpr call?

2011-11-05 Thread Duncan Murdoch
On 11-11-05 4:36 AM, Renaud Gaujoux wrote: More or less in the same vein as Henrik's post, is it possible to detect that a function is being called in an \Sexpr when generating an Rd file? Thank you Sure: have it check for a variable (or option or environment setting, or whatever) that was

[Rd] Identify \Sexpr call?

2011-11-05 Thread Renaud Gaujoux
More or less in the same vein as Henrik's post, is it possible to detect that a function is being called in an \Sexpr when generating an Rd file? Thank you -- Renaud Gaujoux Computational Biology - University of Cape Town South Africa __ R-devel@r-pr