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.