I would like to use in rstudio server gmailr without interactive authorization.
Since I am already using googledrive when I run gm_auth(path = "credentials.json")
I get:
createTcpServer: address already in use
For reference, I solved it with the following code:
options(gargle_oauth_cache = ".secrets")
gargle::gargle_oauth_cache()
gm_auth_configure(path = "credentials.json") # this json is obtained here: https://developers.google.com/gmail/api/quickstart/python