[R] No load() from script
Jason Turner
jasont at indigoindustrial.co.nz
Sat May 22 10:02:30 CEST 2004
On Fri, May 21, 2004 at 11:35:16AM -0400, Matej Cepl wrote:
...
> > #data.multiple <- read.table(file="multiple.csv",sep="\t")
> > load(file="multiple.RData")
> Error in open.connection(con, "rb") : unable to open connection
> In addition: Warning message:
> cannot open compressed file `multiple.RData'
> Execution halted
> komensky:work$
>
> However, I still can easily load the same data with plain
> load("multiple.RData") from R's command line. What'e even more
> strange is, that I get *exactly* same error message even when
> multiple.RData where created with save(compress=FALSE).
...
The only time I get that message is when running R as a
script in the wrong directory. Have you tried using an
absolute pathname? e.g.
load(file="/home/komensky/work/multiple.RData")
or wherever it really is.
Cheers
Jason
--
Indigo Industrial Controls Ltd.
http://www.indigoindustrial.co.nz
64-21-343-545
jasont at indigoindustrial.co.nz
More information about the R-help
mailing list