diff --git a/DESCRIPTION b/DESCRIPTION index 7b8cdd1..7c3281c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: rstudioapi Title: Safely Access the RStudio API Description: Access the RStudio API (if available) and provide informative error messages when it's not. -Version: 0.16.0.9000 +Version: 0.17.0 Authors@R: c( person("Kevin", "Ushey", role = c("aut", "cre"), email = "kevin@rstudio.com"), person("JJ", "Allaire", role = c("aut"), email = "jj@posit.co"), diff --git a/NEWS.md b/NEWS.md index 0cb57d2..6f85d24 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,9 +1,10 @@ -# rstudioapi (under development) +# rstudioapi 0.17.0 * Added `getMode()`, which can be used to differentiate between Desktop and Server installations of RStudio. (#280) + # rstudioapi 0.16.0 * `restartSession()` gains the `clean` argument, for RStudio 2024.04 @@ -11,11 +12,13 @@ * Added `setGhostText()` for setting ghost text in the current editor. + # rstudioapi 0.15.0 * Added `getDelegatedAzureToken` for Posit Workbench users needing to expose OAuth2 tokens for Azure services that have already had permissions configured + # rstudioapi 0.14 * `documentPath()` now marks the encoding of file paths as UTF-8. (#257) diff --git a/R/code.R b/R/code.R index 8ce74fa..409fbe1 100644 --- a/R/code.R +++ b/R/code.R @@ -89,7 +89,7 @@ getMode <- function() { # use fallback if not rstudio <- as.environment("tools:rstudio") if (rstudio$.rs.isDesktop()) "desktop" else "server" - + }