On 13 January 2015 at 00:16, Jeffrey Wong wrote:
| Hello,
| 
| I am very interested in making libFM accessible through R via Rcpp
| 
| https://github.com/srendle/libfm
| 
| The makefile for libFM will compile the libFM.cpp file in the src/libFM
| directory and dump the result in a bin/ directory, which is normally accessed
| through command line.  What would be the best way for making this accessible
| through Rcpp? 

I'd start with the src/libfm/Makefile, see what it compiles into libfm (ie
*.cpp and tools/{transpose,convert.cpp}) and just copy that to src/ of your
package.  R takes care of the rest.

Working with an external library is doable but harder.  Other R packages do
it, can't think of an Rcpp-using package that does though.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to