1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 03:22:00 +02:00

(v1.1.0.9016) small fix

This commit is contained in:
2020-05-21 12:28:57 +02:00
parent 743f9a5364
commit 1b1e243d14
18 changed files with 30 additions and 33 deletions

View File

@ -252,9 +252,9 @@ dataset_UTF8_to_ASCII <- function(df) {
}
# replace crayon::has_color
# replace crayon::has_color, but now also FALSE on non-interactive mode
has_colour <- function() {
if (Sys.getenv("TERM") == "dumb") {
if (Sys.getenv("TERM") == "dumb" | !interactive()) {
return(FALSE)
}
if (tolower(Sys.info()["sysname"]) == "windows") {