rstudiorecent-file-list

Recent files history R


How can one find an extensive list of R files that were opened in RStudio? Sort of like the list under File -> Recent Files but much longer?


Solution

  • I do not believe so. Per this question, it appears that the file history is stored locally at C:\Users\%USER%\AppData\Local\RStudio-Desktop\monitored\lists\file_mru. (Assuming Windows) When I looked at this file on my local machine, it simply matched the recent files I was seeing in RStudio. When I deleted a couple lines from the file_mru file, they also disappeared from RStudio.

    However, given that they are stored in a text file, one could probably write some code to grab and store those filenames permanently, should you choose. Just doesn't appear that RStudio does that.