Is there any variable which would tell us if we're running in "command line" (or console) mode vs graphical environment (aka UI)?
I was hoping for `c(graphics)' but it's set to "on" in either case.