[Rcpp-devel] Using loess() from Rcpp

Romain Francois romain at r-enthusiasts.com
Fri Apr 2 08:35:56 CEST 2010

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.

Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
`- http://tr.im/O1wO : highlight 0.1-5

More information about the Rcpp-devel mailing list