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 NEWS file. I

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 Grothendieck wrote:

[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

[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

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 question

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 answer

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 wrote: Please don't use

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, but

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

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 a NEWS file.