Questions tagged [gargle]
16 questions
9
votes
2 answers
Increase time before tidyverse API OAuth token expires when using bigquery?
When using bigrquery from R, the tidyverse API asks for authentication, which, once provided, allows bigquery to be accessed from the R session. Downloading results can be time consuming, and the if the oauth token expires mid transfer the download…

stevec
- 41,291
- 27
- 223
- 311
3
votes
2 answers
get authetication in google api browser but gargle permission fails
I am using googledrive to download directly from my drive folders, I am getting now this error
since i was getting this error Show in New Window
Error in gargle_abort_request_failed():
! Client error: (403) Forbidden
Insufficient Permission:…

i.b
- 167
- 11
3
votes
2 answers
Googlesheets quota limit issues - possible failure to use API key
We are currently using google sheets for a research project on crowd forecasts for Covid-19 case and death numbers.
Google Sheets is used for convenience, but we are often running into quota limit issues - even though the number of users we have…

Nikos Bosse
- 144
- 11
2
votes
0 answers
Unable to download file from google drive
I am currently trying to run R scripts from Jenkins via the following plugin (https://plugins.jenkins.io/r/) all on an AWS EC2 instance
The problem now is that I can't authenticate myself in a non-interactive way as indicated by the gargle library…

Melly
- 21
- 3
1
vote
0 answers
bigrquery - Get new token with a different email address
I am trying to change the email that I use to read data from bigrquery.
When I use
bq_auth()
bq_user()
I get my work email
bq_user()
[1] "MYEMAIL@biotech.com"
If I deauth, and reauthenticate:
> bq_deauth()
> bq_user()
NULL
>…

HowYaDoing
- 820
- 2
- 7
- 15
1
vote
0 answers
Googlesheets4 login in docker container
My aim is to be able to distribute an R script which uses googlesheets4, as a docker image, to my work colleagues. That complicates google authentication, as credentials_user_oauth2() will not open a browser on the host machine. Also I want to…

Mark Hamlin
- 339
- 1
- 10
1
vote
0 answers
googleCloudStorageR::gcs_auth: Error: Non-interactive session and no authentication email selected
I'd like to use this function in docker to authenticate Biq Query and Google Cloud Storage.
authenticate <- function() {
scopes <- c("https://www.googleapis.com/auth/cloud-platform",
…

mihagazvoda
- 1,057
- 13
- 23
1
vote
0 answers
Im aware im trying to get data for multiple accounts but where can i specify that rather than receiving this error in R?
library(rgoogleads)
library(gargle)
token <- token_fetch()
token
gads_auth(email = 'xx@gmail.com'
Authentication complete.
ad_group_report <- gads_get_report(
resource = "ad_group",
fields = c("ad_group.campaign",
…
user16819611
1
vote
0 answers
How do I connect to a google sheet via googlesheets4 (r package) with a json oauth file?
I need to connect to a google sheet in a non-interactive way. I've read the documentation here, here, and here and have done the following:
Created a google cloud account and project
Created a service account, and added the resulting email address…

cskn
- 99
- 9
1
vote
0 answers
Non-interactive authorization with R/googlesheets4 + Rshiny using a service account token
I'm at a loss, I cannot figure out how to get non-interactive authorization working from the vignette found here. To me it seems it should be as simple as passing the path to the service account json file to gs4_auth(), and this does work in…

Karl Johnson
- 111
- 1
- 7
0
votes
1 answer
Gmailr, authendication problem in one host but not others
gmailr authentication fails, after a fresh installation of Debian, only on one of my systems.
I have a script that run fine on two remote machines, but fails on my local machine.
I use this for authentication:
gm_auth_configure(path =…

ThanasisN
- 73
- 1
- 9
0
votes
1 answer
Trying to move a Google drive file with googledrive package results in 403 error "A shared drive item must have exactly one parent."
I want to move a file on a shared Google drive into a sub folder, but always getting an error.
Let's say I have folder x and sub_folder x/_old on a shared gdrive.
In folder x I have an abc.png image that I want to move to the x/_old folder.
I first…

deschen
- 10,012
- 3
- 27
- 50
0
votes
1 answer
gm_auth function with gargle_oauth_cache stop working
I have written R script that download email's from gmail. I have used gm_auth with gargle_oauth_cache.
library("gmailr")
gm_auth_configure(path = "path.json")
gm_auth(email = "mail",
cache = gargle::gargle_oauth_cache(),
use_oob =…

Igniste
- 108
- 6
0
votes
1 answer
Error in RStudio with google drive credentials and google earth engine
I am new to programming in R and am trying to execute a R code where I access the google drive and the google earth engine. However, two situations are happening: first on my personal laptop at home I run the code and it works perfectly and doesn't…

APSFM
- 1
0
votes
1 answer
Accessing cloud storage from within plumbeR running in cloud run
I have plumbeR API running in cloud run, and I would like to access files in a google storage bucket within the same project. The API runs fine, but I cannot get through the authentication. I am trying to use the googleAuthR and gargle libraries,…

HowYaDoing
- 820
- 2
- 7
- 15