Hi @mt96,
Not sure if my previous suggestion solved your .RData
problem?
Another way to tackle this is to make use of a .Last()
function, located in either your .Rprofile
or Rprofile.site
file, which is the last thing executed before R closes.
See this link for some background
https://www.statmethods.net/interface/customizing.html
In your case this should work, in combination with the redefined quit()
(see above):
.Last <- function(){
save.image(version=2)
cat("\n.RData file in version=2 format has been saved\n")
invisible(readline(prompt="Press [enter] to quit"))
}
HTH