Thanks for your explanation. callbackFunction will be prefect in my case.
Just wondering can I pass an R function like below to a c++ function in a
separate cpp file (e.g., in src folder of my package)?
funx <- cfunction(signature(N = "integer" , xvec = "numeric",* fun =
"function"* ),
On 21 March 2012 at 20:46, Ariful Azad wrote:
| Hi,
|
| I created a package using Rcpp (using Rcpp.package.skeleton()).
| Now I need to access a piece of R code from the cpp code in the package.
| I am trying to use RInside.
Then you do /not/ start with the package skeleton generator, which is f
Hi,
I created a package using Rcpp (using Rcpp.package.skeleton()).
Now I need to access a piece of R code from the cpp code in the package.
I am trying to use RInside.
I am using Mac 64 bit machine.
When I installed RInside I found the shared libraries in two places
1. /Library/Frameworks/R.
fr
Hi Rcpp developers and users:
In the main point, this is to inform you about a new package that uses Rcpp:
Rmalschains: Continuous Optimization using Memetic Algorithms with Local Search
Chains (MA-LS-Chains) in R
http://cran.r-project.org/web/packages/Rmalschains/index.html
Rmalschains is ba
On 21 March 2012 at 08:49, Hadley Wickham wrote:
| > Sure, very valid question. I tend to do two things:
| >
| > a) at times experiment/try/play with the inline package and cxxfunction
| >
| > b) much more often, work with a package where, for force of habit, my
| > typical workflow often is
> Sure, very valid question. I tend to do two things:
>
> a) at times experiment/try/play with the inline package and cxxfunction
>
> b) much more often, work with a package where, for force of habit, my
> typical workflow often is
>
> $ R CMD INSTALL mypkg && r -lmypkg -e 'someFunctio
On 03/21/2012 01:27 PM, Dirk Eddelbuettel wrote:
I wonder if that should go to the Rcpp-FAQ instead of Rcpp-package?
I believe in the dictatorial approach-- your vision, you decide.
Diff -u looked at your answer to Hadley's question and suggests
the following changes to Rcpp-FAQ.Rnw:
---
Hi Glenn,
On 21 March 2012 at 10:56, Glenn Lawyer wrote:
| Dear Dirk,
|
| I have now written a patch which incorporates your answer to Hadley in the
| Rcpp-package manual. I am attaching the complete *Rnw file. The diff is below.
I wonder if that should go to the Rcpp-FAQ instead of Rcpp-packag
Dear Dirk,
I have now written a patch which incorporates your answer to
Hadley in the Rcpp-package manual. I am attaching the complete
*Rnw file. The diff is below.
Please let me know your preferred channel for me to submit future
patch suggestions.
Kind regards,
+glenn
## begin