1

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 = gargle::gargle_oob_default(),)

Until today it worked well on my laptop and pc that we use as a server. It still working well on my laptop but on server pc I get error

Error: Can't get Google credentials. Are you running gmailr in a non-interactive session? Consider: * Call gm_auth() directly with all necessary specifics.

I tried to find port 1410 like in drive_auth() function not creating gargle-oauth token on password submission but nothing is running on this port. I have no idea how to repair it, and why this error ocurred.

1 Answer 1

1

For me worked clean cache and make new one's.

rappdirs::user_cache_dir("gargle")

cache folder localization

 library("gargle")
 gargle_oauth_sitrep()

list of active tokens

Sign up to request clarification or add additional context in comments.

1 Comment

This answer helped me to resolve another problem I had stackoverflow question. But still don't understand why it worked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.