jalvesaq / colorout

Colorize R output in terminal emulators
288 stars 21 forks source link

Load only in a terminal emulator, not in RSTudio? #11

Closed for-coursera closed 7 years ago

for-coursera commented 7 years ago

Is it possible to achieve that somehow? Via configs or command-line switches may be?

I mean, is it possible to wrap library(colorout) in .Rprofile in some conditionals, may be? Or to create some command line terminal-specific alias for R?

bdwyer2 commented 7 years ago
if(Sys.getenv("TERM") %in% c("xterm-256color", "xterm")) {
        library("colorout")
}
for-coursera commented 7 years ago

Super, thanks!