Skip to content

Commit 401cf71

Browse files
juliasilgelionel-
andauthored
Set .Platform$GUI to "Positron" in console sessions only (#977)
* Set `.Platform$GUI` to "Positron" in console sessions only * Add simple test * Revert "Add simple test" This reverts commit b78ba94. * Revert "Set `.Platform$GUI` to "Positron" in console sessions only" This reverts commit e5ae05b. * Set `.Platform$GUI` just in the positron module * This all gets evaluated outside of Positron as well * Update crates/ark/src/modules/positron/positron.R Co-authored-by: Lionel Henry <[email protected]> --------- Co-authored-by: Lionel Henry <[email protected]>
1 parent d780d35 commit 401cf71

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# positron.R
3+
#
4+
# Copyright (C) 2025 Posit Software, PBC. All rights reserved.
5+
#
6+
#
7+
8+
if (Sys.getenv("POSITRON") == 1) {
9+
.Platform <- base::.Platform
10+
.Platform$GUI <- "Positron"
11+
env_bind_force(baseenv(), ".Platform", .Platform)
12+
}

0 commit comments

Comments
 (0)