Skip to content

Commit 476cf06

Browse files
authored
Merge pull request #438 from romainfrancois/RSTUDIO_CLI_HYPERLINKS
2 parents 8218deb + 9c5daab commit 476cf06

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎R/ansi-hyperlink.R‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ ansi_has_hyperlink_support <- function() {
5454
enabled <- Sys.getenv("R_CLI_HYPERLINKS", "")
5555
if (isTRUE(as.logical(enabled))){ return(TRUE) }
5656

57+
## environment variable used by RStudio
58+
enabled <- Sys.getenv("RSTUDIO_CLI_HYPERLINKS", "")
59+
if (isTRUE(as.logical(enabled))){ return(TRUE) }
60+
5761
## Are we in a terminal? No?
5862
if (!isatty(stdout())) { return(FALSE) }
5963

0 commit comments

Comments
 (0)