Re: [Rd] defining a print method

2006-01-04 Thread Deepayan Sarkar
On 1/4/06, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > In the following session we define an xx class and a print method > for it. If I invoke it with print then it prints as expected but if > we just type xx at the R prompt then we get nothing back. How > do we define the print method so tha

[Rd] defining a print method

2006-01-04 Thread Gabor Grothendieck
In the following session we define an xx class and a print method for it. If I invoke it with print then it prints as expected but if we just type xx at the R prompt then we get nothing back. How do we define the print method so that it works in the latter case too? > xx <- structure("abc", clas

Re: [Rd] Using STL containers in R/C++

2006-01-04 Thread Prof Brian Ripley
Using C++ will reduce portability of your code. Using C++'s STL (not R's stl, so it is a good idea to spell out jargon) will reduce the portability further. R itself does not use C++, and although a C++ compiler is found, it is only very mininally tested (and in particular its headers and libr

[Rd] Using STL containers in R/C++

2006-01-04 Thread Andrew Finley
Hi All, I am in the process of writing an R extension in c++ and am using several STL containers (e.g., vector, map, multimap). I make sure to clear all these containers at the end of the .Call. Everything compiles and runs just fine, but I'm a bit worried since I haven't found any other packag

Re: [Rd] R-devel Digest, Vol 35, Issue 4

2006-01-04 Thread A.J. Rossini
> From: Ross Boylan <[EMAIL PROTECTED]> > > In answer to the other question about using OS checkpointing > facilities, I haven't tried them since the application will be running > on a cluster. More precisely, the optimization will be driven from a > single machine, but the calculation of the obj

[Rd] Pb with agrep()

2006-01-04 Thread Herve Pages
Happy new year everybody, I'm getting the following while trying to use the agrep() function: > pattern <- "XXX" > subject <- c("oo", "oooXooo", "oooXXooo", "oooXXXooo") > max <- list(ins=0, del=0, sub=0) # I want exact matches only > agrep(pattern, subject, max=max) [1] 4 OK > max$su

[Rd] R on Thin Client with Win 2003

2006-01-04 Thread Barry Rowlingson
I'm having some fun with R on a Windows 2003 Server talking to a Wyse Winterm running Thinstation Linux. The Winterm boots Linux from the network and then runs rdesktop to a Dell 1750 server (dual 3G Xeon or somesuch). The first problem I noticed was that R (and the terminal) ground to a near

[Rd] ANN: Advanced R programming course, Seattle, Jan 18-20

2006-01-04 Thread Seth Falcon
Spots are still available for an advanced R programming course to be held Jan 18-20 in Seattle. Instructors: Robert Gentleman Seth Falcon Topics: Lexical scope Vectorization S3 and S4 OOP R packages Database connectivity Interfacing to C via .C and .Call Det

[Rd] update.formula gotcha (PR#8462)

2006-01-04 Thread p . dalgaard
(Reported by Søren Højsgaard) Looks like update.formula is stripping of parentheses in cases where they shouldn't be > update.formula (Reaction ~ Days + (Days | Subject), . ~ . + I(Days^2)) Reaction ~ Days + Days | Subject + I(Days^2) Notice that the right hand side is interpreted with the bar