From ripley at stats.ox.ac.uk  Wed May  7 21:05:38 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 7 May 2008 20:05:38 +0100 (BST)
Subject: [Rd] R-2.8.0 : get platform device with get(getOption("device"))
In-Reply-To: <8613cc220805070831w5e52a1cvf9ff93e8a33c16c6@mail.gmail.com>
References: <8613cc220805070831w5e52a1cvf9ff93e8a33c16c6@mail.gmail.com>
Message-ID: <alpine.LFD.1.10.0805072004010.32764@gannet.stats.ox.ac.uk>

Please do study the posting guide.  This was covered recently:

https://stat.ethz.ch/pipermail/r-devel/2008-April/049319.html


On Wed, 7 May 2008, Fr?d?ric Lafitte wrote:

> Hi,
>
> I have a R-package that works fine with R 2.7.0 (it builds, checks and
> installs) but not with R 2.8.0.

There is no 'R 2.8.0' and will not be for some months.  You probably mean 
R-devel, but your code has been erroneous since R 2.5.0.

> Running check in 2.8.0 gives the following output :
> [...]
> * checking examples ... ERROR
> [...]
> The error most likely occurred in:
> [...]
>> dev <- show.pr(mr.tbl, col="green", type="b")
> Error in get(getOption("device")) : invalid first argument
> Calls: show.pr -> get
> Execution halted
>
> How can I change this code so that it works fine with R 2.8.0?
>
> Thanks!
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

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


[Rd] R-2.8.0 : get platform device with get(getOption("device"))
Prof Brian Ripley