From p.dalgaard at biostat.ku.dk  Thu May  8 00:37:28 2008
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Thu, 08 May 2008 00:37:28 +0200
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: <48222F28.3040308@biostat.ku.dk>

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.
> 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?
>
>   
Use dev.new() instead of  that construct.


-- 
   O__  ---- Peter Dalgaard             ?ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



[Rd] R-2.8.0 : get platform device with get(getOption("device"))
Peter Dalgaard