Had a frustrating issue where I lost a lot of code and wanted to get it back via .Rhistory. However when I checked it seemed this hasn't been overwritten since 3 years ago! So my Rhistory is not being updated despite this option being selected in the settings.
Seems like my Rstudio cannot overwrite an older file, tried starting Rstudio with admin rights and putting in some new random lines - but these were not saved either.
Any clues appreciated