Skip to content

Commit 53987d8

Browse files
require google authentication everytime for match_keywords()
1 parent 6603bc7 commit 53987d8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Expand `get_assignments()` and `actionable_articles()` to search on AEs and
44
print out articles in status "with AE".
5+
- `match_keywords()` now requires authentication everytime to avoid false positive PERMISSION_DENIED
56

67

78
# rj 0.2.25

R/match.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ get_article_keywords <- function(id) {
163163

164164
#' Extract keywords from reviewer list
165165
get_reviewer_keywords <- function() {
166-
cli::cli_alert_info("Select the email adress having access to the reviewer googlesheet (if applicable): ")
166+
cli::cli_alert_info(
167+
"In the popup authentication, please first select the email address with access to the reviewer googlesheet. On the next page, please tick the item:
168+
{.field See, edit, create, and delete all your Google Sheets spreadsheets}")
167169
reviewer_info <- read_reviewer_sheet()
168170

169171
dup <- reviewer_info %>%
@@ -182,11 +184,12 @@ get_reviewer_keywords <- function() {
182184
}
183185

184186
read_reviewer_sheet <- function(){
187+
googlesheets4::gs4_auth(cache = FALSE)
185188
sheet_raw <- suppressMessages(googlesheets4::read_sheet(reviewer_sheet_url))
186189
colnames(sheet_raw) <- c("timestamp", "email","gname","fname",
187190
"website","github","twitter","keywords",
188191
"blank1", "blank2", "review_completed", "comments")
189-
sheet_raw
192+
sheet_raw %>% tibble::as_tibble()
190193
}
191194

192195
reviewer_sheet_url <- "https://docs.google.com/spreadsheets/d/1stC58tDHHzjhf63f7PhgfiHJTJkorvAQGgzdYL5NTUQ/edit?ts=606a86e4#gid=1594007907"

0 commit comments

Comments
 (0)