su: ignore --preserve-environment, it's mutually exclusive to --login. Error in `gs4_auth()`: ! 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_get("1KaYWbwG1IFJiQCeMSeg58GnM4wqUrQIEoLKOne_NCA4") at ShinyApps/eportuc/app.R:101:2 13. └─googlesheets4:::gs4_get_impl_(as_sheets_id(ss)) 14. └─googlesheets4::request_generate(...) 15. ├─gargle::request_build(...) 16. └─googlesheets4::gs4_token() 17. └─googlesheets4::gs4_auth() 18. └─googlesheets4:::gs4_abort(...) 19. └─cli::cli_abort(...) 20. └─rlang::abort(...) Execution halted