Re: [Rcpp-devel] RInside error in mac 64 bit?

2012-03-21 Thread Ariful Azad
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"* ),

Re: [Rcpp-devel] RInside error in mac 64 bit?

2012-03-21 Thread Dirk Eddelbuettel
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

[Rcpp-devel] RInside error in mac 64 bit?

2012-03-21 Thread Ariful Azad
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

[Rcpp-devel] [ANN] New package Rmalschains (with initial version 0.1) and recent changes in RSNNS (current version 0.4-3)

2012-03-21 Thread Christoph Bergmeir
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

Re: [Rcpp-devel] devtools load_all() and modules

2012-03-21 Thread Dirk Eddelbuettel
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

Re: [Rcpp-devel] devtools load_all() and modules

2012-03-21 Thread Hadley Wickham
> 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

Re: [Rcpp-devel] Fwd: Re: devtools load_all() and modules

2012-03-21 Thread Glenn Lawyer
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: ---

[Rcpp-devel] Fwd: Re: devtools load_all() and modules

2012-03-21 Thread Dirk Eddelbuettel
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

[Rcpp-devel] Fwd: Re: devtools load_all() and modules

2012-03-21 Thread Glenn Lawyer
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