Hi,
If you save your workspace, a workspace image is saved in a .RData
file. Have you tried loading this file into Rstudio when continuing your work? You can use load("your_file.RData")
to do that.
However, I would recommend you not to rely on your history and previous commands in the console as a mean to track your work in R. This is a very error prone method and is not very reproducible. Intstead, you should use your scripts or an R Notebook to save your work.
This is especially usefull when working on something over a long period of time, or when you have to revisit your old projects. If you save everything in a script, you can directly see all of your code, and everything that is executed in R is clearly documented there.
From my understanding, it is rather uncommon, and at least from some sources discouraged to even save your working environment, so I would recommend you to invest a little bit of time to familiarise yourself with scripts or R markdown, you will quickly see all the advantages that will bring to you.