Re: [Rd] Portability of a C function

2010-02-14 Thread J Ryan
Take a look here, as this may help clear up the unanswered questions: https://stat.ethz.ch/pipermail/r-devel/2008-November/051262.html HTH Jeff Jeffrey A. Ryan jeffrey.r...@insightalgo.com ia: insight algorithmics www.insightalgo.com On Feb 14, 2010, at 3:18 PM, Christophe Genolini paris10.fr

Re: [Rd] beginner's guide to C++ programming with R packages?

2009-06-26 Thread J Ryan
If your just looking to build and test a single function written in C/C ++ you can try: R CMD SHLIB my.c Which will produce a object that can be loaded in R with 'dyn.load'. A simple R script including dyn.load('my.so') with your basic tests can then be run with: R --vanilla < my.R HTH Je