Skip to content
Discussion options

You must be logged in to vote

I'm sure the landscape will change, but at this moment the POSITRON environment variable is probably your best bet:

is_positron <- function() {
  Sys.getenv("POSITRON") == "1"
}

is_positron()
#> [1] TRUE

Created on 2024-07-02 with reprex v2.0.2

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@chuxinyuan
Comment options

@chuxinyuan
Comment options

Answer selected by chuxinyuan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants