Skip to content

error open .RData

4 messages · Muhammad Subianto, PIKAL Petr, Horacio Montenegro

#
Dear R-list,
I have a problem to open my R workspace.
When I try to open my file .Rdata with double-clik on windows explore I 
get the error like this:

Error in load(name, envir = .GlobalEnv) : error reading from connection

and on windows error:

Fatal error: unable to restore saved data in .RData

I try with,

 > load("CaseStudyHouseID50.RData", .GlobalEnv)
Error in load("CaseStudyHouseID50.RData", .GlobalEnv) :
         error reading from connection
 >

 > load("CaseStudyHouseID50.RData")
Error in load("CaseStudyHouseID50.RData") :
         error reading from connection
 >

I have done to save my R workspace like this:
################################################################################
   save(list = ls(all=TRUE),
        file = "CaseStudyHouseID50.RData")
################################################################################

What is wrong?
Is there anyway to open .RData?

Regards, Muhammad Subianto

 > R.version
          _
platform i386-pc-mingw32
arch     i386
os       mingw32
system   i386, mingw32
status
major    2
minor    2.0
year     2005
month    10
day      06
svn rev  35749
language R
 >
#
Hi

Your .Rdata file is probably corrupted. Unless you have a working 
copy of it elsewhere or sources of your data together with history 
of your commands you are probably in deep trouble .Rdata is a 
binary format and it is not recommended to safe and reliable saving 
of your work as you have only limited, if any, possibilities to 
recover it if anything goes wrong.

I usually have all my important source data in txt or xls format and 
I frequently save history in separate files (on daily basis or 
sometimes several times a day) to be able to repeat everything I 
have done.

Cheers
Petr
On 19 Oct 2005 at 11:58, Muhammad Subianto wrote:
Date sent:      	Wed, 19 Oct 2005 11:58:11 +0200
From:           	Muhammad Subianto <subianto at gmail.com>
To:             	r-help at stat.math.ethz.ch
Subject:        	[R] error open .RData
Petr Pikal
petr.pikal at precheza.cz
#
I will investigate. Thanks for you info.
Because of my file .RData very large about 75MB.
Best wishes, Muhammad Subianto
On this day 19/10/2005 12:21 PM, Petr Pikal wrote:
#
hi

     It seems that, in some cases, saving a .RData
containing objects from some packages and later trying
to start R (or load the .RData) before loading the
package could cause this error. See

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/46910.html

     If the .RData contains objects from some specific
packages, try loading the package first and then load
the .RData file.

     Also, RSiteSearch(".RData corrupted") results in
lots of hits.

     hope this helps,
         horacio montenegro
--- Muhammad Subianto <subianto at gmail.com> wrote:

            
################################################################################
################################################################################