Find a code to execute gmailr in DOCKERFILE

20 Views Asked by At

I just want a send gmail message using gmailr R package and PUT in DOCKER SCRIPT. But i have problem with authentication!

Error in `gm_auth()`:
! Can't get Google credentials.
✖ No OAuth client has been configured.

My code:

gm_auth(token = gm_token_read(path = "secrets/gmailr-token.rds"))
gm_auth_configure(path = 'secrets/gmailkey.json"', cache = TRUE)
0

There are 0 best solutions below