S-news,
I came across a problem using Splus5 that I hoped someone else might
have discovered and cured. This morning I created a list of matrices like the
following:
> x <- list(a=matrix(runif(10000), ncol=10,
dimnames=list(NULL, paste("XX",1:10))),
b=matrix(runif(10000), ncol=10,
dimnames=list(NULL, paste("XX",1:10))))
then I went to look at part of it and got:
> x[[1]][45,7]
Problem: Error in reading: "character data" (object or file x): No such file or
directory
Use traceback() to see the call stack
After some experimentation, it appears that the error only happens under some
circumstances. First, if the definition of x is broken up into say:
> a <- matrix(runif(10000), ncol=10, dimnames=list(NULL, paste("XX", 1:10)))
> b <- matrix(runif(10000), ncol=10, dimnames=list(NULL, paste("XX", 1:10)))
> x <- list(a=a,b=b)
Then it seems to work correctly. It also seems to work if the column names of
the component matrices are different. I am saying 'seems' because it is an
intermittent error to begin with, and as a kicker it apparently only affects
some users (this is a Linux system, Version 5.1 Release 1 for Linux 2.0.31 :
1999).
Has anyone else stumbled across errors like this? I realize that this
example might work for many of you, I'm interested in those cases that get the
error. Thanks for any help,
Matt
|