diff --git a/R/utils.R b/R/utils.R index 3890c8d70..dadd0ba2f 100644 --- a/R/utils.R +++ b/R/utils.R @@ -37,7 +37,13 @@ rstudio_tickle <- function() { } rstudioapi::executeCommand("vcsRefresh") - rstudioapi::executeCommand("refreshFiles") + if (!is_positron()) { + rstudioapi::executeCommand("refreshFiles") + } +} + +is_positron <- function() { + nzchar(Sys.getenv("POSITRON", "")) } first_upper <- function(x) {