Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.0705072101130.6489@gannet.stats.ox.ac.uk>
Date: 2007-05-07T20:02:32Z
From: Brian Ripley
Subject: Qt device update
In-Reply-To: <eb555e660705071207m1f05a9c4j316b38b02f7f6aa3@mail.gmail.com>

On Mon, 7 May 2007, Deepayan Sarkar wrote:

> On 5/5/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
>
> [...]
>
>>      o	dev.interactive() regards devices with the displaylist 
>> enabled
>>  	as interactive, and packages can register the names of their
>>  	devices as interactive via deviceIsInteractive().
>
> Thanks. A related issue: 2.5.0's NEWS has:
>
>   o   options(device = ) now accepts a function object as well as
>       the name of a function.
>
> (For some reason, I had thought this was true all along, but in any
> case) This means that it's now reasonable to do
>
>> options(device = function() x11("", 4, 4))
>
> But then I get (iff there is no device open)
>
>> example(glm)
> Error in match(x, table, nomatch = 0) : 'match' requires vector arguments
>
> because dev.interactive() doesn't know about the change yet.
> dev.interactive() cannot really do anything useful in this case, but
> an error seems too harsh (especially since example(glm) doesn't even
> have any graphics).

Thanks, easily fixed.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595