[R] .RData and UNIX
Duncan Murdoch
murdoch at stats.uwo.ca
Thu Oct 12 20:30:15 CEST 2006
On 10/12/2006 1:50 PM, J.M. Breiwick wrote:
> Hi,
>
> I have been using R under Windows but have started to use R (ver. 2.3.0,)
> under Linux (linux-gnu).
>
> I have been saving my workspace and I notice that I sometimes end up with 2
> version of the .RData file:
> .RData and .Rdata. Can someone explain what is happening? I am not sure
> which one is loaded so I have ended up losing data by deleting the wrong
> file. I think the saved file should be .RData. Thank you.
Unix (mostly) uses a case-sensitive file system, so .Rdata and .RData
are different files. On Windows or MacOSX (mostly) they would refer to
the same file.
So at some point in your code or the code you're using, someone was a
little sloppy and saved a file to .Rdata.
As far as I know none of the R base packages or GUIs do this, so it's
likely in something you wrote or in a contributed package. I'd keep a
careful watch until you see what you're doing when this happens in order
to identify where the problem is.
Duncan Murdoch
More information about the R-help
mailing list