Capture nominal values ​​without opening a graphics device

Is it possible to capture parameters from par without opening a graphics device? So, for example, if I do this:

opar <- par()[["mar"]] opar 

on my windows 7 / linux mint 14 / mac machines a graphics device opens.

How can I capture output without waking up a graphics device?

+1
source share
1 answer

No, because the parameters from par() are saved as part of the graphics device.

More details

par() calls the internal c-function ( C_par() ), which checks the current device with the c function GEcurrentDevice() , which requests the current device. If he cannot find the device, he runs one ( source code ). C_par() then adds the parameters to the device using the Query() function ( source code ).

+2
source

All Articles