Skip to content

Commit

Permalink
fix for Positron
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 22, 2024
1 parent 08a5abc commit b50a551
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: insight
Title: Easy Access to Model Information for Various Model Objects
Version: 0.99.0.19
Version: 0.99.0.20
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
3 changes: 3 additions & 0 deletions R/colour_tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
if (.rstudio_with_ansi_support() && sink.number() == 0) {
return(TRUE)
}
if (Sys.getenv("POSITRON", "") == "1" && sink.number() == 0) {
return(TRUE)
}
if (!isatty(stdout())) {
return(FALSE)
}
Expand Down

0 comments on commit b50a551

Please sign in to comment.