[R] Recovering former projects on R

William Dunlap wdun|@p @end|ng |rom t|bco@com
Fri Jun 21 22:51:37 CEST 2019


You should ask someone at RStudio about this, but *.Rproj files are not
something R itself knows about.  load() reads files made by save(), which
usually have the extension ".Rdata" or ".rda".

Bill Dunlap
TIBCO Software
wdunlap tibco.com


On Fri, Jun 21, 2019 at 1:43 PM Spencer Brackett <
spbrackett20 using saintjosephhs.com> wrote:

> Good evening,
>
>   I am revisiting a project I had saved to R studio and after working with
> it for a little, with loaded data and environments shown just as I left
> them when I stopped working on the project, my console and the tabs opened
> went blank. I believe I accidentally activated q() and quit the project. I
> tried to re-access the same file with all of the work I’ve done for this
> project saved onto it, and I got the following...
>
>
>  load("~/R/GBM P-EXP/GBM P-EXP.Rproj")
> Error in load("~/R/GBM P-EXP/GBM P-EXP.Rproj") :
>   bad restore file magic number (file may be corrupted) -- no data loaded
> In addition: Warning message:
> file ‘GBM P-EXP.Rproj’ has magic number 'Versi'
>   Use of save versions prior to 2 is deprecated
>
> Does this mean that I lost all of my previous work, or is there another way
> to recover all the coding and loaded environments that I had saved to this
> file?  For context, I also tried accessing the project through a desktop
> version of the file saved on my desktop through R Studio, but this also
> just generated a blank terminal with no loaded environments.
>
> Any advice would be greatly appreciated!
>
> Best,
>
> Spencer Brackett
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list