Skip to content

Commit

Permalink
Fix #158
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot committed Oct 29, 2024
1 parent a0262e0 commit 8d89e40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# rtoot 0.3.4.9000

* fixed #153 by allowing POSIXct as `max_id`, `min_id` and `since_id` (#154) by @Kudusch
# fixed #158 for VSCode and similar editors which return TRUE for `rstudio::isAvailable()` (#159)

# rtoot 0.3.4

Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ rtoot_ask <- function(prompt = "enter authorization code: ", pass = TRUE, check_
}
passFun <- readline
if (isTRUE(pass) && isTRUE(check_rstudio) && (requireNamespace("rstudioapi", quietly = TRUE))) {
if (rstudioapi::isAvailable()) {
if (rstudioapi::isAvailable() && rstudioapi::hasFun("askForPassword")) {
passFun <- rstudioapi::askForPassword
}
}
Expand Down

0 comments on commit 8d89e40

Please sign in to comment.