[R] r and c++ (Duncan Murdoch)

2009-02-13 Thread Pedro Silva
-- Message: 22 Date: Thu, 12 Feb 2009 09:38:10 -0600 From: Dirk Eddelbuettel Subject: Re: [R] r and c++ To: JC Cc: r-help@r-project.org Message-ID: <18836.16994.244794.92...@ron.nulle.part> Content-Type: text/plain; charset=us-ascii Javier, On 12 Februar

Re: [R] r and c++

2009-02-12 Thread Dirk Eddelbuettel
Javier, On 12 February 2009 at 16:16, JC wrote: | is there a way to integrate R language within a c++ programme? That is, | is there something like an R library I can incorporate in my c++ code? I have two projects on R-Forge.R-Project.org that may be of interest: Rcpp which makes

Re: [R] r and c++

2009-02-12 Thread Duncan Murdoch
On 2/12/2009 10:16 AM, JC wrote: Hi all, is there a way to integrate R language within a c++ programme? That is, is there something like an R library I can incorporate in my c++ code? Yes, that's described in the Writing R Extensions manual, in chapter 8, "Linking GUIs and other front-ends t

[R] r and c++

2009-02-12 Thread JC
Hi all, is there a way to integrate R language within a c++ programme? That is, is there something like an R library I can incorporate in my c++ code? Thanks, Javier __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] R and C/C++ for loop

2008-06-08 Thread juiceorange
I want to call C/C++ in R to do the loops. Is it doable? If my whole code is a big loop, is it better to do the inverse thing, i.e. call R function in C/C++? Whichever is better, is there any online material which guide me the procedure? Thank you! -- View this message in context: http://www.n

Re: [R] R and C - variable by reference

2008-05-15 Thread Duncan Murdoch
Naira wrote: Hi all, I would like to know if it is possible in R to give a the reference of a variable in a function; in order to be able to change the variable in the function and to keep the change when the function ended. In other words, is it possible to code this following C code in R: voi

[R] R and C - variable by reference

2008-05-15 Thread Naira
Hi all, I would like to know if it is possible in R to give a the reference of a variable in a function; in order to be able to change the variable in the function and to keep the change when the function ended. In other words, is it possible to code this following C code in R: void functionName