Re: R-alpha: Misc problems

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Tue, 18 Feb 1997 08:53:23 +1300 (NZDT)


Date: Tue, 18 Feb 1997 08:53:23 +1300 (NZDT)
From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Message-Id: <199702171953.IAA15838@stat1.stat.auckland.ac.nz>
To: jlindsey@luc.ac.be, r-testers@stat.math.ethz.ch
Subject: Re:  R-alpha: Misc problems

Jim Lindsey <jlindsey@luc.ac.be> writes:

> 1. The S books often give examples using something like this:
> u <- list()
> u[[1]] <- a
> In R this gives subscript out of bounds (also character, vector, etc.)

I have just replied to this.  The code has been added.

> 2. switch does not fall through:
> switch(test,a=,b=,c=T,d=F)
> gives a syntax error

I can't reproduce this.  There was a problem with tagging of the for
"a"=, (i.e. the tag is quoted), but I have fixed this now.

> 3. format(diag(2)) returns a vector instead of a matrix

Yep.  I will fix this and nchar.

> 4. print.default in S has an option, right=T, but R does not

Just went on the list.

> 5. use of stop() in a function does not return a NULL from the
> function

I'm not sure what you mean here.  My S manual says that "stop" aborts
the current expression (and dumps the call frames, but we do that).
	Ross
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-