Le 02/04/10 08:35, Romain Francois a écrit : > Hello Davor, > > Rcpp gives you the tools, but it is up to you to use them. > > Le 02/04/10 02:04, Davor Cubranic a écrit : >> >> Has anyone here used R curve-fitting from Rcpp? Like loess(), for example? >> Reading the R code, after a couple of layers of preliminaries to extract all >> the required parameters, it ends up in C (loess_raw) and Fortran (lowesw and >> lowesp). > > Sooner or later, everything in R ends up in C or fortran. > >> It would be nice if there were already code out there that gives me a tidier >> interface that I could use instead of transcribing the R wrapper into C. And >> even cooler if R's 'formula' DSL had a C++ equivalent... > > An R formula is not much more than a language object, so you can > manipulate it through the Rcpp::Language class. If you have ideas, > design thoughts, on how to make it more convenient we will listen.
Not quite a DSL, but I've added the Rcpp::Formula class, which lets you create R formulae conveniently, e.g : Formula f( "x ~ y + z" ) ; see runit.Formula.R for more examples Romain -- Romain Francois Professional R Enthusiast +33(0) 6 28 91 30 30 http://romainfrancois.blog.free.fr |- http://tr.im/OIXN : raster images and RImageJ |- http://tr.im/OcQe : Rcpp 0.7.7 `- http://tr.im/O1wO : highlight 0.1-5 _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
