[BioC] Stange message with getOption("device") in OSX
Florian Hahne
fhahne at fhcrc.org
Mon May 18 18:28:39 CEST 2009
Hi Gonzalo,
how about using dev.new():
'dev.new' opens a new device. Normally R will open a new device
automatically when needed, but this enables you to open further
devices in a platform-independent way. (For which device is used
see 'getOption("device")'.)
Florian
On 18.05.2009, at 09:14, Vincent Carey wrote:
> this is surely not an issue with Bioconductor. however, you can do
> something like
>
> z = getOptions("device")
> if (is.function(z)) z() # starts x11 on my mac running from
> commandline
>
> 2009/5/18 "M. Gonzalo Claros Díaz" <claros at uma.es>
>
>>
>> El 18/05/2009, a las 16:11, Vincent Carey escribió:
>>
>> note -- 'or the function object itself'
>>
>> what exactly is the problem?
>>
>>
>> The problem is that I always (at least until now) checked which is
>> the
>> graphical interface with
>> getOption("device")
>>
>> and I always had the "quartz" or "windows" answer. Then, I used it
>> with
>> get() to open the graphical window, like
>>
>> get(getOption("device"))
>>
>> because I want to open graphical windows in any platform [and not
>> with
>> x11() function]
>>
>> In "Devices{grDevices}" it is said: "Which device is given by options
>> ("device") which is initially set as the most appropriate for each
>> platform"
>>
>> Hence, if in R 2.9.0 options("device") it returns the function,
>> that means
>> that it is not set to any device. So, which is the best method to
>> open the
>> graphical capability of your machine? None of these works:
>>
>> get(getOption("bitmapType"))
>>
>> nor
>>
>> get("quartz")
>>
>> But
>>
>> quartz() or x11()
>>
>> open the graphical window without any problem.
>>
>> If I try
>>
>> dev.list()
>>
>> it returns NULL. But
>>
>> capabilities("aqua")
>>
>> renders TRUE.
>>
>>
>> So... how can I open a graphical window in any computer with the same
>> script without using x11() ?
>>
>> Gonzalo
>> --
>> «Donde me he equivocado, soy el único responsable; donde no,
>> el mérito es de los que me han ayudado»
>> ================================================================
>> M. Gonzalo CLAROS claros at uma.es
>> Dpt. Biología Molecular y Bioquímica
>> Facultad de Ciencias Fax: (+34) 95 213 2041
>> Universidad de Málaga Tel: (+34) 95 213 7284/7653
>> E-29071 Málaga (Spain) http://www.bmbq.uma.es/fmp/
>>
>>
>>
>>
>
>
> --
> Vincent Carey, PhD
> Biostatistics, Channing Lab
> 617 525 2265
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
More information about the Bioconductor
mailing list