[Bioc-devel] R environment variable which indicates "running in the bioc build system"?

Paul Shannon p@u|@thurmond@@h@nnon @end|ng |rom gm@||@com
Thu Sep 12 20:47:44 CEST 2019

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

Is there a way my test and example code can detect that?

I prefer not to condition on 


because in some settings (travis CI, my own development setup) non-interactive tests, using a possibly headless browser, do make sense.

Thank you -

 - Paul

More information about the Bioc-devel mailing list