Skip to content
Prev 330 / 63424 Next

R-alpha: New version of R for testing

Ross Ihaka <ihaka@stat.auckland.ac.nz> writes:
Something looks wrong:
expression(2 + 2)
expression(2 + 2)
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
[1] "expression"

----------

Another piece of weirdness:
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?)
0
[1,] 1

# Looks OK now ... or is it? Watch:
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.