Hi Paul,

On 9/12/19 11:47, Paul Shannon wrote:
> My package igvR requires a web browser.  Unit tests, examples, vignette all 
> will all fail if one is not available.
> 
> Since the bioc build system, for good reason, does not provide a web browser, 
> I’d like to condition all browser-related code on “not executing in the bioc 
> build system”.

AFAIK the build machines have web browsers.

Anyway if for some reason you need to disable the code that relies on a 
web browser, wouldn't it make more sense to condition this code on the 
presence of a web browser?

Cheers,
H.

> 
> Is there a way my test and example code can detect that?
> 
> I prefer not to condition on
> 
>    if(interactive())
> 
> because in some settings (travis CI, my own development setup) 
> non-interactive tests, using a possibly headless browser, do make sense.
> 
> Thank you -
> 
>   - Paul
> _______________________________________________
> Bioc-devel@r-project.org mailing list
> https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_bioc-2Ddevel&d=DwIFaQ&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=iEEUVO5v2amEngLM9wKOPLZ90l4CAu3luSqTBk10vwY&s=KvWmn10aFYkg7GYHvM-0QjJkquiJirXMWLSQtYlj0u0&e=
> 

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpa...@fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319
_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to