I am wondering if anyone is aware of a way to call dev.new()
and have the resulting frame launch to a second monitor by default. I'm running R through ESS under Windows 7. It defaults to upper right corner of my primary monitor.
UPDATE
dev.new(xpos=1930, ypos=65)
will launch the plot window to upper left corner of my secondary monitor.
I would still be interested in how to set xpos
and ypos
under device
, either per session, per script, or globally.
Look at getOption("device")
and Sys.getenv("_R_CHECK_SCREEN_DEVICE_")
. There should be your device number. I am on linux, so can't say what windowZ call these, but I get a number. If the default one is 1, than if I set it to 2, i get it on the external monitor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With