Replying to @Andrew___Baker
I use this at the end of my ~/.Rprofile: if (interactive()) { utils::assignInNamespace("q", function(save = "no", status = 0, runLast = TRUE) { .Internal(quit(save, status, runLast)) }, "base" ) } Then q() does what you want without dialog.

Jul 31, 2023 · 12:34 AM UTC

1
6
1
29
Is there a way to override the "save workspace" dialog when you hit Ctrl-D in a linux terminal R session?
1