Skip to content

Commit b5221ab

Browse files
committed
Fix bug that broke the RStudio build pane colors, 1.3.4
1 parent 39c50ca commit b5221ab

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: crayon
22
Title: Colored Terminal Output
3-
Version: 1.3.3
3+
Version: 1.3.4
44
Authors@R: c(
55
person("Gábor", "Csárdi", , "csardi.gabor@gmail.com",
66
role = c("aut", "cre")),

R/has_color.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ has_color <- function() {
5151

5252
## RStudio with (potential) ANSI support?
5353
if (rstudio_with_ansi_support() && sink.number() == 0) {
54-
return(rstudioapi::callFun("getConsoleHasColor"))
54+
return(TRUE)
5555
}
5656

5757
## Are we in a terminal? No?

R/utils.r

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ rstudio_with_ansi_support <- function() {
118118

119119
## This only works if the initialization is complete
120120
requireNamespace("rstudioapi", quietly = TRUE) &&
121+
rstudioapi::isAvailable() &&
121122
rstudioapi::hasFun("getConsoleHasColor")
122123
}
123124

inst/NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# 1.3.3
2+
# 1.3.4
33

44
* Style fucntions convert arguments to character now
55

0 commit comments

Comments
 (0)