I ran into this issue too.
I did not find any issues at all with the Gargle
package, sorry.
Instead, what worked for me and should work for you was throwing the following into the console:
devtools::install_github("tidyverse/googlesheets4")
(it might work just fine with the "regular" version, but I did not get to test it, as many people complained online about versions being the potential issue... so I just went directly for the latest available one...)
library(googlesheets4)
gs4_auth()
the console responds with:
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
You actually don't get to see the message at first, because the command opens up immediately your browser (google chrome
in my case) and you are asked to grant access to your Google drive
: simply click the unticked box and then the page changes again and you see a message "authentification granted, close this page to get back to R
"...
Now in R
, you see the message above, and everything now works as expected! :-)