su: ignore --preserve-environment, it's mutually exclusive to --login. Error in `googlesheets4::gs4_auth()` at ShinyApps/eportuc/app.R:96:2: ! Can't get Google credentials. ℹ Are you running googlesheets4 in a non-interactive session? Consider: • Call `gs4_deauth()` to prevent the attempt to get credentials. • Call `gs4_auth()` directly with all necessary specifics. ℹ See gargle's "Non-interactive auth" vignette for more details: ℹ Backtrace: ▆ 1. └─shiny::runApp(Sys.getenv("SHINY_APP"), port = port, launch.browser = FALSE) 2. ├─shiny::as.shiny.appobj(appDir) 3. └─shiny:::as.shiny.appobj.character(appDir) 4. └─shiny::shinyAppDir(x) 5. └─shiny:::shinyAppDir_appR("app.R", appDir, options = options) 6. └─shiny (local) appObj() 7. └─shiny (local) func(fname, ...) 8. └─shiny:::sourceUTF8(fullpath, envir = new.env(parent = sharedEnv)) 9. └─base::eval(exprs, envir) 10. └─base::eval(exprs, envir) 11. ├─shiny::..stacktraceon..(...) 12. └─googlesheets4::gs4_auth(scope = "https://www.googleapis.com/auth/drive") at ShinyApps/eportuc/app.R:96:2 13. └─googlesheets4:::gs4_abort(...) 14. └─cli::cli_abort(...) 15. └─rlang::abort(...) Execution halted