su: ignore --preserve-environment, it's mutually exclusive to --login.
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.2 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.0
✔ ggplot2 3.4.2 ✔ tibble 3.2.1
✔ lubridate 1.9.2 ✔ tidyr 1.3.0
✔ purrr 1.0.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package () to force all conflicts to become errors
Error in `googlesheets4::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_auth("passi.solar@gmail.com")
13. └─googlesheets4:::gs4_abort(...)
14. └─cli::cli_abort(...)
15. └─rlang::abort(...)
Execution halted