From b17cbcf5cefda33c84bfff4d8994af9682f2022a Mon Sep 17 00:00:00 2001 From: Mitsuo Shiota <48662507+mitsuoxv@users.noreply.github.com> Date: Thu, 9 Nov 2023 12:42:25 +0900 Subject: [PATCH] Suggest/spreadsheet: 21.3 Google Sheets, make gs4_deauth() explicit (#1473) * make gs4_deauth() explicit * Update spreadsheets.qmd * Update spreadsheets.qmd * Update spreadsheets.qmd * Update spreadsheets.qmd --------- Co-authored-by: Mine Cetinkaya-Rundel --- spreadsheets.qmd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spreadsheets.qmd b/spreadsheets.qmd index cde54c2..65c190b 100644 --- a/spreadsheets.qmd +++ b/spreadsheets.qmd @@ -556,8 +556,6 @@ The first argument to `read_sheet()` is the URL of the file to read, and it retu These URLs are not pleasant to work with, so you'll often want to identify a sheet by its ID. ```{r} -#| include: false - gs4_deauth() ``` @@ -628,7 +626,7 @@ write_sheet(bake_sale, ss = "bake-sale", sheet = "Sales") ### Authentication -While you can read from a public Google Sheet without authenticating with your Google account, reading a private sheet or writing to a sheet requires authentication so that googlesheets4 can view and manage *your* Google Sheets. +While you can read from a public Google Sheet without authenticating with your Google account and with `gs4_deauth()`, reading a private sheet or writing to a sheet requires authentication so that googlesheets4 can view and manage *your* Google Sheets. When you attempt to read in a sheet that requires authentication, googlesheets4 will direct you to a web browser with a prompt to sign in to your Google account and grant permission to operate on your behalf with Google Sheets. However, if you want to specify a specific Google account, authentication scope, etc. you can do so with `gs4_auth()`, e.g., `gs4_auth(email = "mine@example.com")`, which will force the use of a token associated with a specific email.