Re: R-alpha: some minor inconsistencies

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Mon, 31 Mar 1997 22:48:02 +1200 (NZST)


Date: Mon, 31 Mar 1997 22:48:02 +1200 (NZST)
From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Message-Id: <199703311048.WAA20765@stat1.stat.auckland.ac.nz>
To: Kurt.Hornik@ci.tuwien.ac.at, wvenable@attunga.stats.adelaide.edu.au
Subject: Re: R-alpha: some minor inconsistencies

> Kurt Hornik stands accused of saying:

> >>>>> Bill Venables writes:

> > While transferring some old S-code I came across some minor
> > inconsistencies between R and S that are probably more nuisance
> > value than they would take to fix.  I report them here for
> > reference, (but not in any campaigning mood, of course...)

> > 1. No frame() command in R and so no graceful way to clear a
> >    plotting screen.  (Or is there?)

> plot.new()?

This indeed does it.  I will wrap it with a "frame" command.

The graphics code in R is a "temporary" hack from some years back.
I have been hoping that a PhD student of mine was going to "fix"
it all up, but he's gotten interested in constraint language
programming and fix may be some way off ...

> > 3. If dfr is a data frame with components "x", "y" and some
> >    others then points(dfr) uses dfr as an xy-list in S but not in
> >    R.  If there is some non-numeric component it actually fails
> >    in R.  This may be S being a bit inconsistent, but the
> >    behaviour is different.

> > 5. In S you may extend a list by assigning to a new component.
> >    For example if lis has components "x" and "y", only, you can
> >    extend it by assigning to lis$z, lis["z"] or lis[, "z] (the
> >    last if it is also a data frame).  In R only the first of
> >    these works; the others give a "subscript out of bounds"
> >    error.  (This may have been discussed while I was not paying
> >    attention, in which case I apologize.)

> Both seem to work in the 0.50 prereleases.  Can you please recheck when
> 0.50 is out?

Any second now ...
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers 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-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-