Skip to content

Commit 64f904e

Browse files
committed
m
1 parent 1ee25b6 commit 64f904e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/click.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
#}
1616

1717
RStudio_warning <- function() {
18-
if (.terra_environment$RStudio_warned) return()
18+
if (isTRUE(.terra_environment$RStudio_warned)) return()
1919
if (Sys.getenv("RSTUDIO_USER_IDENTITY") != "") {
20-
warn("'click', 'draw', and 'sel' may not work properly\nwith the default RStudio plotting window. See ?click")
20+
warn("'click', 'draw', 'zoom', and 'sel' may not work properly\nwith the default RStudio plotting window. See ?click")
2121
}
22-
.terra_environment$RStudio_warned <- TRUE
22+
try(.terra_environment$RStudio_warned <- TRUE, silent=TRUE)
2323
}
2424

2525

0 commit comments

Comments
 (0)