Re: R-alpha: Misc problems

Ross Ihaka (
Tue, 18 Feb 1997 08:53:23 +1300 (NZDT)

Date: Tue, 18 Feb 1997 08:53:23 +1300 (NZDT)
From: Ross Ihaka <>
Message-Id: <>
Subject: Re:  R-alpha: Misc problems

Jim Lindsey <> 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).
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: