Re: [Rd] Small issue with R's C API

2005-10-25 Thread Dominick Samperi
Prof Brian Ripley wrote: > An R NULL does not map to a C NULL. > > Please learn to distinguish documented facts from uninformed guesswork. Any probably it should be added that users should not look at Rinternals.h, because they will find things like NILSXP that are defined to be 0 (C NULL). __

Re: [Rd] Small issue with R's C API

2005-10-25 Thread Prof Brian Ripley
An R NULL does not map to a C NULL. Please learn to distinguish documented facts from uninformed guesswork. On Tue, 25 Oct 2005, Dominick Samperi wrote: > Prof Brian Ripley wrote: >> This is nothing to do with the C API: isVector and isMatrix are not >> part of the API (see Writing R Extensions

Re: [Rd] Small issue with R's C API

2005-10-25 Thread Dominick Samperi
Prof Brian Ripley wrote: > This is nothing to do with the C API: isVector and isMatrix are not > part of the API (see Writing R Extensions for what it is). That's the > `issue' here. > > On Tue, 25 Oct 2005, Dominick Samperi wrote: > >> Consider the R code: >> mat <- matrix(seq(1,20),4,5) >> is.

Re: [Rd] Small issue with R's C API

2005-10-25 Thread Dominick Samperi
Prof Brian Ripley wrote: > This is nothing to do with the C API: isVector and isMatrix are not > part of the API (see Writing R Extensions for what it is). That's the > `issue' here. > > On Tue, 25 Oct 2005, Dominick Samperi wrote: > >> Consider the R code: >> mat <- matrix(seq(1,20),4,5) >> is.

Re: [Rd] Small issue with R's C API

2005-10-25 Thread Prof Brian Ripley
This is nothing to do with the C API: isVector and isMatrix are not part of the API (see Writing R Extensions for what it is). That's the `issue' here. On Tue, 25 Oct 2005, Dominick Samperi wrote: > Consider the R code: > mat <- matrix(seq(1,20),4,5) > is.matrix(mat) # gives TRUE > is.vector(m