Re: [Rd] faqs

2007-11-16 Thread Gabor Grothendieck
On Nov 15, 2007 10:51 AM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > On Nov 15, 2007 9:57 AM, Simon Urbanek <[EMAIL PROTECTED]> wrote: > > > > On Nov 14, 2007, at 11:55 PM, Gabor Grothendieck wrote: > > > > > inst/NEWS would have the advantage of consistency with R itself > > > which also has

Re: [Rd] Returning vectors of two different data types back to R environment (from C).

2007-11-16 Thread Oleg Sklyar
SEXP x,y,res; PROTECT(res = allocVector(VECSXP, 2)); SET_VECTOR_ELT(res, 0, x = allocVector(REALSXP, 20)); SET_VECTOR_ELT(res, 1, y = allocVector(INTSXP, 10)); // code with x,y goes here UNPROTECT(1); return res; On Fri, 2007-11-16 at 15:49 -0500, Charles Danko wrote: > Hello, > > Quick questi

Re: [Rd] Returning vectors of two different data types back to R environment (from C).

2007-11-16 Thread statmobile
On Fri, Nov 16, 2007 at 03:49:09PM -0500, Charles Danko wrote: > Hello, > > Quick question. > > I have written a C function - I would like to make it return two vectors to > the R environment - one STRSXP vector, and one INTSXP vector. Is this > possible/ easy to do using the API? > > I looked,

Re: [Rd] C/C++ 'assert' should not be used in R packages

2007-11-16 Thread Henrik Bengtsson
On Nov 10, 2007 1:27 PM, Simon Urbanek <[EMAIL PROTECTED]> wrote: > > > On Nov 10, 2007, at 1:05 PM, Duncan Murdoch wrote: > > > On 10/11/2007 1:00 PM, Duncan Temple Lang wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> > >> > >> Duncan Murdoch wrote: > >>> Prof Brian Ripley

Re: [Rd] library path in Rd link

2007-11-16 Thread Adrian Dusa
On Wednesday 14 November 2007, Duncan Murdoch wrote: > On 11/14/2007 8:49 AM, Adrian Dusa wrote: > > [...] > > > > Is there a method to create links to functions from the base package, for > > example (which is installed by default in the normal library folder)? > > I believe this is normally autom

Re: [Rd] Returning vectors of two different data types back to R environment (from C).

2007-11-16 Thread Barry Rowlingson
Charles Danko wrote: > Hello, > > Quick question. > > I have written a C function - I would like to make it return two vectors to > the R environment - one STRSXP vector, and one INTSXP vector. Is this > possible/ easy to do using the API? > > I looked, but could not find the answer to this qu

Re: [Rd] Returning vectors of two different data types back to R environment (from C).

2007-11-16 Thread Roger Bivand
On Fri, 16 Nov 2007, Charles Danko wrote: > Hello, > > Quick question. > > I have written a C function - I would like to make it return two vectors to > the R environment - one STRSXP vector, and one INTSXP vector. Is this > possible/ easy to do using the API? > > I looked, but could not find the

[Rd] Returning vectors of two different data types back to R environment (from C).

2007-11-16 Thread Charles Danko
Hello, Quick question. I have written a C function - I would like to make it return two vectors to the R environment - one STRSXP vector, and one INTSXP vector. Is this possible/ easy to do using the API? I looked, but could not find the answer to this question in the "Writing R Extensions" gu

[Rd] re sponses to issues on r-devel

2007-11-16 Thread Ben Bolker
I'm probably going to get in trouble for this, but ... What is the best way to get 'important' issues resolved by R-core? There is a category of 'issues' (I won't call them bugs or problems, although arguably they are so) that appear on R-devel and sink without ever receiving an explicit a

Re: [Rd] NEWS file (was faqs)

2007-11-16 Thread friedrich . leisch
> On Fri, 16 Nov 2007 10:20:36 + (GMT), > Prof Brian Ripley (PBR) wrote: > On Thu, 15 Nov 2007, Simon Urbanek wrote: >> >> On Nov 15, 2007, at 10:53 AM, Duncan Murdoch wrote: >> >>> On 11/15/2007 9:57 AM, Simon Urbanek wrote: On Nov 14, 2007, at 11:55 PM, Gabor Groth

Re: [Rd] NEWS file (was faqs)

2007-11-16 Thread Prof Brian Ripley
On Thu, 15 Nov 2007, Simon Urbanek wrote: > > On Nov 15, 2007, at 10:53 AM, Duncan Murdoch wrote: > >> On 11/15/2007 9:57 AM, Simon Urbanek wrote: >>> On Nov 14, 2007, at 11:55 PM, Gabor Grothendieck wrote: inst/NEWS would have the advantage of consistency with R itself which also has a