R-alpha: New version of R for testing
Peter Dalgaard BSA
p.dalgaard@kubism.ku.dk
24 Jul 1997 22:45:07 +0200
Ross Ihaka <ihaka@stat.auckland.ac.nz> writes:
> NEW FEATURES
>
> o "expressions" are now implemented as a basic type rather than as
> a class of object. This change was made as move toward compatibility
> with S and also to implement mathematical annotation in graphs.
Something looks wrong:
> expression(2+2)
expression(2 + 2)
> expression(2+2)[[1]]
expression(2 + 2)
> expression(2+2)[[1]][[1]]
expression(2 + 2)
- How the blazes is a poor soul supposed to get at the parse tree for
an expression? According to the docs, an expression is supposed to be
a list of calls, but obviously
> mode(expression(2+2)[[1]])
[1] "expression"
----------
Another piece of weirdness:
> t(table(0))
Error: dimnames: number of dimensions must equal number of names
# That one used to cause a segmentation fault (my bug report for it
# seems to have fallen off of the TASKS list - bug suicide?)
> t(as.matrix(table(0)))
0
[1,] 1
# Looks OK now ... or is it? Watch:
> ?ls
Warning: invalid 'cutoff' for deparse, used default
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
List Objects
ls(name, pos=2, envir=sys.frame(sys.parent()),
all.names=FALSE, pattern)
Same thing happens if you omit the 2nd expression.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-