[Rd] "a.matrix[a.char.matrix]<- " crashes R (PR#447)
cberry@tajo.ucsd.edu
cberry@tajo.ucsd.edu
Thu, 17 Feb 2000 01:10:21 +0100 (MET)
To wit:
---
> junk <- array(3,c(10,3),dimnames=list(as.character(1:10),as.character(1:3)))
> junk[cbind(as.character(1:5),as.character(c(1,2,3,2,3)))] <- 20
>
> junk
Process R segmentation violation (core dumped) at Wed Feb 16 15:57:49
2000
---
I know that the use of a ***character*** matrix is not documented for
this context. Still, it should not crash R.
In addition to 0.90.1, this also happens on rw0991b
--please do not edit the information below--
Version:
platform = sparc-sun-solaris2.7
arch = sparc
os = solaris2.7
system = sparc, solaris2.7
status =
major = 0
minor = 90.1
year = 1999
month = December
day = 15
language = R
Search Path:
.GlobalEnv, Autoloads, package:base
--
Charles C. Berry (858) 534-2098
Dept of Family/Preventive
Medicine
E mailto:cberry@tajo.ucsd.edu UC San Diego
http://hacuna.ucsd.edu/members/ccb.html La Jolla, San Diego 92093-0645
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._