I am not able to able to authorize Google Sheet using Rstudio Server. I have tried all the possible ways available on google but it didn't work.
I'm using below code.
library(googlesheets4)
gs4_auth()
# options(httr_oob_default=TRUE)
#gs4_deauth()
write_sheet(MyDF, "10XhCF-MmXw8gfIn4P0xg45MlIjna4YSfeq2I00gNhrt", sheet = 'Sheet1')
I have tried the same code in offline R by installing R on local machine it is working completely fine, but it doesn't work on R server.
I have tried all different browsers, but getting the below-mentioned error

