using quartz device in spite of Rstudio
Hi,
To allow the use of Rstudio on "old" project we would need
options("quartz")
under mac
to behave the same than
options("X11")
under linux.
Currently options("quartz") doesn't redefine the main device to be quartz (allowing multiple windows).
Additionally a "tick-box" in options allowing to set the default plotting device to the "system" one is a must.
Missing this options is preventing us to switch to Rstudio.
Best,
Corentin
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Josh Paulson on 06 Aug, 2012 06:36 PM
Corentin,
Would the ability to detach the plots pane work for you? Or do you specifically need to make use of the quartz graphics device? We've got this feature high on the list to things to do for the next release.
Also for a temporary workaround, you can at least start a new device with by calling
quartz()in the console.Josh
3 Posted by corentin barbu on 06 Aug, 2012 07:47 PM
Josh,
I sure use the quartz() to open new devices in our tests but this is not
portable enough in our mix linux/mac environement :-S
I'm not sure what you mean by being able to detach the plots pane (multiple
windows?) but we need to be able to play with the size of the window etc...
so it would be nice if we could really "turn off" the display in the window
pane :-)
Thanks,
Corentin
2012/8/6 Josh Paulson <
[email blocked]>
Support Staff 4 Posted by Josh Paulson on 06 Aug, 2012 08:10 PM
Corentin,
Okay thanks for clarifying and to set either quartz or x11 as your default device, you should just call the following and RStudio will respect this:
Also we are already planning to allow the RStudio graphics device to be detached form the main IDE and then positioned anywhere. Note though this unfortunately does not include having multiple RStudio Graphics devices right now, but we also have that one on our list.
josh
5 Posted by corentin barbu on 06 Aug, 2012 08:36 PM
The problem I report is precisely that
options(device="quartz")
does *not* work as expected: dev.new() cannot be called and as is.
In addition, it would be nice to have a portable instruction to say I want
to use the native display on the plateform, something like:
options(device=native)
Corentin
2012/8/6 Josh Paulson <
[email blocked]>
Support Staff 6 Posted by Josh Paulson on 06 Aug, 2012 09:48 PM
Corentin,
I actually cannot reproduce the problem you are having. For example I execute the following code and it works fine:
I then have two separate quartz devices running with two separate plots. Can you provide me with a specific example that is not working for you and I'll take a look.
Josh
7 Posted by corentin barbu on 08 Aug, 2012 09:58 PM
This actually works fine now. I don't know what I did to but that, if I
have problems again I'll try to generate a reproducible bug.
I guess the only remaining thing is to have an option not to have to
manually set
options(device="quartz")
at the beginning of all session :-)
Corentin
Support Staff 8 Posted by Josh Paulson on 09 Aug, 2012 01:45 AM
Corentin,
Glad to hear that it is working now and if you want to run code automatically at the start of a session, you should use a .Rprofile. See the following:
Josh
Josh Paulson closed this discussion on 09 Aug, 2012 01:45 AM.