using quartz device in spite of Rstudio

Corentin Barbu's Avatar

Corentin Barbu

03 Aug, 2012 06:05 PM

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

  1. Support Staff 2 Posted by Josh Paulson on 06 Aug, 2012 06:36 PM

    Josh Paulson's Avatar

    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

  2. 3 Posted by corentin barbu on 06 Aug, 2012 07:47 PM

    corentin barbu's Avatar

    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]>

  3. Support Staff 4 Posted by Josh Paulson on 06 Aug, 2012 08:10 PM

    Josh Paulson's Avatar

    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:

    > options(device="quartz")
    > options(device="x11")
    

    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

  4. 5 Posted by corentin barbu on 06 Aug, 2012 08:36 PM

    corentin barbu's Avatar

    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]>

  5. Support Staff 6 Posted by Josh Paulson on 06 Aug, 2012 09:48 PM

    Josh Paulson's Avatar

    Corentin,

    I actually cannot reproduce the problem you are having. For example I execute the following code and it works fine:

    > options(device="quartz")
    > dev.off()
    > dev.new()
    > plot(cars)
    > dev.new()
    > plot(pressure)
    

    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

  6. 7 Posted by corentin barbu on 08 Aug, 2012 09:58 PM

    corentin barbu's Avatar

    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

  7. Support Staff 8 Posted by Josh Paulson on 09 Aug, 2012 01:45 AM

    Josh Paulson's Avatar

    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:

    > ?Startup
    

    Josh

  8. Josh Paulson closed this discussion on 09 Aug, 2012 01:45 AM.

Comments are currently closed for this discussion. You can start a new one.