I need to authenticate google drive using the access token without being redirected to the web browser. I tried to authenticate using the code below
drive_auth(token = new_access_token_drive, use_oob = TRUE)
where new_access_token_drive is the access token in the form Bearer xxxx.xxxxx-xxxx
But when I try to authenticate using the above code, it's redirecting to the web browser
The googledrive package is requesting access to your Google account. Select a pre-authorised account or enter '0' to obtain a new token. Press Esc/Ctrl + C to abort.
How can I authenticate without being redirected to the browser using R?