How to authenticate with service account and bigrquery package?

后端 未结 2 1283
长发绾君心
长发绾君心 2020-12-06 07:50

I have been able to authenticate using the json file associated with a service account using googleAuth and bigQueryR.

# Load Packa         


        
相关标签:
2条回答
  • 2020-12-06 07:59

    set_service_token() is now deprecated.

    Use bq_auth() instead:

    bq_auth(path = "location_of_service_token.json")
    

    Source: https://rdrr.io/cran/bigrquery/man/bigrquery-deprecated.html

    0 讨论(0)
  • 2020-12-06 08:22

    You can use the function set_service_token()in bigrquery to authenticate with the same service JSON you use in bigQueryR

    library(bigrquery)
    
    set_service_token("location-of-service.json")
    

    Source: https://github.com/rstats-db/bigrquery/issues/22

    0 讨论(0)
提交回复
热议问题