Skip to content

Commit

Permalink
fix: erroneous version comparison (again)!
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTaylor committed Oct 17, 2024
1 parent 9d72217 commit dfe880b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/aab-rstudio-detect.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rstudio <- local({
if (d$api) {
ns <- asNamespace("rstudioapi")
d$ver <- if (d$api) ns$getVersion()
new_api <- getNamespaceVersion(ns) >= "0.17.0"
new_api <- package_version(getNamespaceVersion(ns)) >= "0.17.0"
d$desktop <- if (new_api) ns$getMode() else ns$versionInfo()$mode
}

Expand Down

0 comments on commit dfe880b

Please sign in to comment.