Re: [Rd] Determining the resolution of a screen device

2014-01-14 Thread Prof Brian Ripley
On 14/01/2014 15:32, Jon Clayden wrote: Dear all, I am trying to find a way to reliably and programmatically establish the resolution (i.e. DPI or equivalent) of an on-screen device. It seemed to me that dev.new(width=1, height=1) dpi <- dev.size("px") would do the trick, but the result

[Rd] Determining the resolution of a screen device

2014-01-14 Thread Jon Clayden
Dear all, I am trying to find a way to reliably and programmatically establish the resolution (i.e. DPI or equivalent) of an on-screen device. It seemed to me that dev.new(width=1, height=1) dpi <- dev.size("px") would do the trick, but the result does not seem to be correct, at least on OS