tidyverse / googlesheets4

Google Spreadsheets R API (reboot of the googlesheets package)
https://googlesheets4.tidyverse.org
Other
360 stars 53 forks source link

gs4_auth() can't get Google credentials in an interactive session. #269

Closed LordAcoustic closed 2 years ago

LordAcoustic commented 2 years ago

After updating to R 4.2.1, I'm getting the following error when running a sheet_write() command

Error in `gs4_auth()`:
! Can't get Google credentials.
ℹ Are you running googlesheets4 in a non-interactive session? Consider:
• Call `gs4_deauth()` to prevent the attempt to get credentials.
• Call `gs4_auth()` directly with all necessary specifics.
ℹ See gargle's "Non-interactive auth" vignette for more details:
ℹ <https://gargle.r-lib.org/articles/non-interactive-auth.html>

Same error message appears when I run gs4_auth(email = "Person@email.com")

I'm not attempting to include this code in a .rmd - I'm just trying to push a df to Google Sheets and I'm getting this error.