I'd like to be able to type q()
in R and have R quit rather than be prompted as to whether I want to quit.
Is there some code that I could put into my .Rprofile
file to make this happen?
I'd prefer if I didn't have to have a custom function floating around in my workspace.
In your Rprofile.site file:
q <- function(save = "yes", status = 0, runLast = TRUE){
.Internal(quit(save, status, runLast))
#<environment: namespace:base>
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With