Discussion:
[R] error open .RData
Muhammad Subianto
2005-10-19 09:58:11 UTC
Permalink
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
Petr Pikal
2005-10-19 10:21:59 UTC
Permalink
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
Post by Muhammad Subianto
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
Error in load(name, envir = .GlobalEnv) : error reading from
connection
Fatal error: unable to restore saved data in .RData
I try with,
load("CaseStudyHouseID50.RData", .GlobalEnv)
error reading from connection
load("CaseStudyHouseID50.RData")
error reading from connection
######################################################################
##########
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
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
Petr Pikal
petr.pikal at precheza.cz
Muhammad Subianto
2005-10-19 12:13:56 UTC
Permalink
Post by Petr Pikal
Your .Rdata file is probably corrupted.
I will investigate. Thanks for you info.
Because of my file .RData very large about 75MB.
Best wishes, Muhammad Subianto
Post by Petr Pikal
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
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
Post by Muhammad Subianto
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
Error in load(name, envir = .GlobalEnv) : error reading from
connection
Fatal error: unable to restore saved data in .RData
I try with,
load("CaseStudyHouseID50.RData", .GlobalEnv)
error reading from connection
load("CaseStudyHouseID50.RData")
error reading from connection
######################################################################
##########
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
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
Petr Pikal
petr.pikal at precheza.cz
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Horacio Montenegro
2005-10-19 19:24:30 UTC
Permalink
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
Post by Muhammad Subianto
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
Error in load(name, envir = .GlobalEnv) : error
reading from connection
Fatal error: unable to restore saved data in .RData
I try with,
load("CaseStudyHouseID50.RData", .GlobalEnv)
Error in load("CaseStudyHouseID50.RData",
error reading from connection
load("CaseStudyHouseID50.RData")
error reading from connection
################################################################################
Post by Muhammad Subianto
save(list = ls(all=TRUE),
file = "CaseStudyHouseID50.RData")
################################################################################
Post by Muhammad Subianto
What is wrong?
Is there anyway to open .RData?
Regards, Muhammad Subianto
Continue reading on narkive:
Loading...