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

