Skip to content

arguments to dev.new()

2 messages · Carl Witthoft, Simon Urbanek

#
Hi,
the WindowsOS - specific command "windows()"  accepts an argument 
"restoreConsole" , which, when set to TRUE, returns focus to the console 
window after opening a new graphics device.
The help file for "dev.new()"  only says '...	arguments to be passed to 
the device selected.'

Is there an argument that will return focus to the R.app console window?

thanks
Carl
#
On Aug 11, 2013, at 8:36 AM, Carl Witthoft <carl at witthoft.com> wrote:

            
Nope - you have to use <Cmd><1> (or equivalent).

In theory this would be possible to implement but it's quite tricky - Quartz is independent of the UI and the console could be in fact in another app (this is quite common: e.g. running R console in the Terminal and Quartz in the R process ).

Cheers,
S