[Rd] subsetting matrix by subscript=0,x silently skips.

2007-01-18 Thread Hin-Tak Leung
(e-mailing to R-bugs is intentional - the web itnerface seems to be down) > a<- cbind(c(1,2), c(3,4)) > a [,1] [,2] [1,]13 [2,]24 > a[cbind(c(2,2), c(2,1))] [1] 4 2 > a[cbind(c(2,3), c(2,1))] Error: subscript out of bounds > a[cbind(c(2,-1), c(2,1))] Error: negative val

Re: [Rd] on.exit called on loading ?

2007-01-18 Thread Duncan Murdoch
On 1/16/2007 5:12 PM, Dirk Eddelbuettel wrote: > On 16 January 2007 at 16:39, Duncan Murdoch wrote: > | On 1/16/2007 4:02 PM, Dirk Eddelbuettel wrote: > | > I just found out that an .onLoad() function such as this stylized one > (where > | > I just renamed some identifiers) > | > > | > > | > .on

Re: [Rd] Wishlist: Sweave: allow line breaks after forward slashes (PR#9444)

2007-01-18 Thread Thibaut Jombart
> What do the other developeRs and useRs think about this? Hi, I here reply as a R user. >> This makes me quite reluctant to >> change it: people get upset about changes to the look of their old >> scripts, because they trigger spurious check errors. > > > Is it possible to add an option to

[Rd] Emulating a REPL in frontends

2007-01-18 Thread Thomas Friedrichsmeier
A common need in R frontends is to provide some sort of read, (parse), evaluate, print loop. However, there are also a number of points where frontends may want to differ from the standard REPL as available e.g. in R_ReplDLLdo1(). First some thoughts on what is needed, and what is already there

[Rd] Building R 2.4.1 on IRIX

2007-01-18 Thread Atro Tossavainen
Hi, I've got the latest MIPS compilers that are C99 aware (7.4.4). "configure" finishes with: R is now configured for mips-sgi-irix6.5 Source directory: . Installation directory:/afs/bi/v/@sys/apps/stats/R/2.4.1 C compiler:cc -c99 -OPT:IEEE_NaN_inf=ON -g Fo

Re: [Rd] Working with Sweave: inverse search?

2007-01-18 Thread Duncan Murdoch
I've now packaged up the Sweave inverse search package, and made the prototype available on my web page http://www.stats.uwo.ca/faculty/murdoch/software as patchDVI_0.2.tar.gz and patchDVI_0.2.zip. I don't know of any bugs in those, but I'd like to hear about them. To enable the inverse searc

Re: [Rd] subsetting matrix by subscript=0,x silently skips.

2007-01-18 Thread Tony Plate
The help page for "[" says: A third form of indexing is via a numeric matrix with the one column for each dimension: each row of the index matrix then selects a single element of the array, and the result is a vector. Negative indices are not allowed in the index matrix. NA and zero values are

Re: [Rd] subsetting matrix by subscript=0,x silently skips.

2007-01-18 Thread Peter Dalgaard
Hin-Tak Leung wrote: > (e-mailing to R-bugs is intentional - the web itnerface seems to > be down) > So is the mail interface... I have alerted our support people, but I didn't see the problem until I came back from teaching, so they may not get it fixed before tomorrow. -- O__ Peter

Re: [Rd] subsetting matrix by subscript=0,x silently skips.

2007-01-18 Thread Hin-Tak Leung
(I have taken off r-bug@, as multiple e-mails hitting r-bug@ probably will result in multiple bug reports, knowing most mail server will retry) Tony Plate wrote: > The help page for "[" says: > > A third form of indexing is via a numeric matrix with the one column for > each dimension: each row

Re: [Rd] Building R 2.4.1 on IRIX

2007-01-18 Thread Peter Dalgaard
Atro Tossavainen wrote: > Hi, > > I've got the latest MIPS compilers that are C99 aware (7.4.4). > > "configure" finishes with: > > R is now configured for mips-sgi-irix6.5 > > Source directory: . > Installation directory:/afs/bi/v/@sys/apps/stats/R/2.4.1 > > C compiler:

Re: [Rd] Building R 2.4.1 on IRIX

2007-01-18 Thread Hin-Tak Leung
Peter Dalgaard wrote: > Atro Tossavainen wrote: >> Hi, >> >> I've got the latest MIPS compilers that are C99 aware (7.4.4). >> >> "configure" finishes with: >> >> R is now configured for mips-sgi-irix6.5 >> >> Source directory: . >> Installation directory:/afs/bi/v/@sys/apps/stats/

Re: [Rd] subsetting matrix by subscript=0,x silently skips.

2007-01-18 Thread Tony Plate
Hin-Tak Leung wrote: > (I have taken off r-bug@, as multiple e-mails hitting r-bug@ probably > will result in multiple bug reports, knowing most mail server will > retry) > > Tony Plate wrote: > >> The help page for "[" says: >> >> A third form of indexing is via a numeric matrix with the one co

Re: [Rd] R-bugs, was subsetting matrix by subscript=0, x silently skips.

2007-01-18 Thread Peter Dalgaard
Hin-Tak Leung wrote: > (I have taken off r-bug@, as multiple e-mails hitting r-bug@ probably > will result in multiple bug reports, knowing most mail server will > retry) > Actually, reports will fall into a deep dark hole The home dir of r-bugs had gone AWOL and this contains the forwardi