Re: [Rd] str and s3 classes

2013-06-21 Thread Martin Maechler
> Hadley Wickham > on Wed, 19 Jun 2013 15:44:05 -0500 writes: > Hi all, Because str uses the generic version of length and > names, it's currently very easy to create objects that > break str: > a <- structure(list(1:5), class = "a") > length.a <- function(x) 2L

Re: [Rd] str and s3 classes

2013-06-21 Thread Duncan Murdoch
Sorry to anyone reading this and being confused by my response: it was meant to be a response to a different message. Duncan Murdoch On 13-06-19 6:53 PM, Duncan Murdoch wrote: On 13-06-19 4:44 PM, Hadley Wickham wrote: Hi all, Because str uses the generic version of length and names, it's c

Re: [Rd] Calling an array in a struct in C to R

2013-06-21 Thread Dirk Eddelbuettel
On 20 June 2013 at 05:44, Tee-Jay-Ardie wrote: | I guess I should start reading up on .Call. If you look back into the R-devel archives as of a few months ago, a long thread there came (fairly strongly and unanimously) to the exact conclusion. With that allow me to make the case a little more s

[Rd] compiling Rcpp with 3.0.1 on Solaris 10

2013-06-21 Thread MAYER Hans
Hello My colleagues asked me to install "R" with module "shiny". R version 3.0.1 compiled fine on Solaris 10 and is running well. I tried to install "shiny". With the dependencies "Rcpp" should be installed before. But the compile step did fail. See below. The initial error message is "Err

Re: [Rd] str and s3 classes

2013-06-21 Thread Hadley Wickham
> > These are obvious toy examples, but it is a real problem > > if you want to create a class that defines names or length > > in a meaningful way, that is incompatible with the > > underlying data structure. > > Yes indeed, (and "well know"). > I'm arguing that in such a situation