-
Notifications
You must be signed in to change notification settings - Fork 49
Description
I'm trying to use googledrive and googlesheets4 in Google Colaboratory, but tips about drive_auth found in #276 or #274, did not solve.
Here is the Colab Notebook. Demo of use GoogleDrive with R in Google Colaboratory
that I'm testing.
The error is
trying token_fetch()
trying credentials_service_account()
Error: Argument 'txt' must be a JSON string, URL or file.
trying credentials_app_default()
trying credentials_gce()
trying credentials_byo_oauth()
Error: inherits(token, "Token2.0") is not TRUE
trying credentials_user_oauth2()
Gargle2.0 initialize
attempt from: googledrive
adding 'userinfo.email' scope
loading token from the cache
no matching token in the cache
Error: Can only use oob authentication in an interactive session
Error: Can't get Google credentials.
Are you running googledrive in a non-interactive session? Consider:
drive_deauth()to prevent the attempt to get credentials.- Call
drive_auth()directly with all necessary specifics.Traceback:
drive_auth(use_oob = TRUE)
stop("Can't get Google credentials.\n", "Are you running googledrive in a non-interactive session? Consider:\n",
. " *drive_deauth()to prevent the attempt to get credentials.\n",
. " * Calldrive_auth()directly with all necessary specifics.\n",
. call. = FALSE)