[ESS] How can one tell rlang not to mess up R session in ESS ?

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Wed Nov 15 20:56:55 CET 2023


For completeness, and without any time yet to dig into Lionel's nord
modification, and as a friend who saw thread asked: what I ended up doing was
following the hint about cli and NO_COLOR and now (conditionally) set

    ## No color from cli inside emacs
    ## https://cli.r-lib.org/reference/faq.html#how-do-i-turn-off-ansi-colors-and-styles-
    if (Sys.getenv("INSIDE_EMACS") != "")
        Sys.setenv(NO_COLOR="TRUE")

That preserves cli behavior on the command-line etc but now prevents it from
turning my R buffer under ESS in Emacs unreadable should I encounter an
error.  And that is good enough for now.

Thanks again,  Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the ESS-help mailing list