1

Is it possible to grab the parameters from par without opening the graphics device? So for instance if I do:

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

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

How can I grab the output without awakening the graphics device?

Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519

1 Answers1

2

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

Details

par() calls an internal c function (C_par()) that checks the current device using the c function GEcurrentDevice() which asks for the current device. If it cannot find a device, it starts one (source code). C_par() then adds the parameters to the device using the Query() function (source code).

Christopher Louden
  • 7,540
  • 2
  • 26
  • 29