HenrikBengtsson / startup

:wrench: R package: startup - Friendly R Startup Configuration
https://henrikbengtsson.github.io/startup/
163 stars 5 forks source link

is_ess(): Alternative detection method? #52

Closed HenrikBengtsson closed 6 years ago

HenrikBengtsson commented 6 years ago

Currently, I use:

is_ess <- function() {
  (Sys.getenv("EMACS") == "t")
}

but in https://stat.ethz.ch/pipermail/ess-help/2015-June/010591.html, mmaechler says:

You can easly find out from that you are running inside ESS,

> any("ESSR" == search())
[1] TRUE

Maybe this should be updated?