Search code examples
eclipserstatet

Saving and Reloading an R workspace image in Eclipse StatET


Fairly simple question hopefully, as far as I could tell most similar questions were about preventing save prompt. I have Eclipse setup to work with StatET, Sweave, and R quite happily. I followed http://jeromyanglim.blogspot.com/2010/02/getting-started-with-sweave-r-latex.html guide. The only problem I have is how to reload a workspace image that contains variables etc.

I chose yes to save the workspace image, but I'm not sure how to reload it. load() doesn't work, and I have no idea what the default savename is.

Any suggestions?


Solution

  • The default "savename" should be something like .Rdata or .Rda and it will go to your current working directory. If you are on a Mac or Windows device the default may be to hide such files from "visibility" from your system file browser, although you should be able to use file.choose() in any place where you would be specifying a file name. I don't understand how you "save a workspace image" that cannot be load()-ed unless what your really mean is cannot be found. See if you can find it with:

    load(file.choose() )
    

    To get better answers you should include information about your OS and the code you are having problems with.