Skip to content

Commit

Permalink
CRAN release 0.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Oct 16, 2024
1 parent 6a71e69 commit 1874f9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"),
person("JJ", "Allaire", role = c("aut"), email = "[email protected]"),
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@

# 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
and newer.

* 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)
Expand Down
2 changes: 1 addition & 1 deletion R/code.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ getMode <- function() {
# use fallback if not
rstudio <- as.environment("tools:rstudio")
if (rstudio$.rs.isDesktop()) "desktop" else "server"

}


Expand Down

0 comments on commit 1874f9a

Please sign in to comment.