Skip to content

driv_auth and google colaboratory #284

@jobdiogenes

Description

@jobdiogenes

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:

  1. drive_auth(use_oob = TRUE)

  2. 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",
    . " * Call drive_auth() directly with all necessary specifics.\n",
    . call. = FALSE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions