Skip to content

Commit

Permalink
Fix #146 (#147)
Browse files Browse the repository at this point in the history
* Fix conflict between Rproj and editorconfig

* Add copy nav url ref#146

* Revert "Add copy nav url ref#146"

This reverts commit 279b5ff.

* Allow copying the URL
  • Loading branch information
chainsawriot authored Nov 26, 2023
1 parent 987a979 commit e8a9799
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ create_token <- function(client, type = "public", browser = TRUE) {
if (browser) {
httr::BROWSE(url, query = query)
} else {
message(paste("Navigate to", httr::modify_url(url, query = query), "to obtain an authorization code"))
message(paste("Navigate to", httr::modify_url(url, query = query), "to obtain an authorization code. Press Enter to the next step."))
rtoot_ask("", pass = FALSE, check_rstudio = FALSE)
}
auth_code <- rtoot_ask(prompt = "enter authorization code: ", pass = TRUE, check_rstudio = TRUE, default = "")
auth2 <- httr::POST(httr::modify_url(url = url, path = "oauth/token"), body = list(
Expand Down
2 changes: 1 addition & 1 deletion rtoot.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
NumSpacesForTab: 4
Encoding: UTF-8

RnwWeave: Sweave
Expand Down

0 comments on commit e8a9799

Please sign in to comment.