Executing gmail_auth() in r using command line asks for authentication every time

108 Views Asked by At

I'm executing an R script from the command line:

library(gmailr)
gmail_auth(scope = c("read_only", "modify", "compose", "full"), 
    secret_file = "C:\\Sentiment Analysis from Email in R\\client.json")

But it's asking for authentication each and every time. How to prevent this? But in RStudio, it only asks once. Please suggest a solution.

0

There are 0 best solutions below