Hi, can somebody tell me, if there is a C or C++ Interface to the R? Reading the documentation, FAQ, CRAN etc. I found nothing. But as i am very new to R, I might have not searched in the right place. Thanks, Alexander
Have you looked at the "Writing R Extensions" manual: http://cran.r-project.org/manuals.html Sean On Apr 12, 2005, at 6:36 AM, Alexander Schinner wrote:> Hi, > > can somebody tell me, if there is a C or C++ Interface to the R? > Reading the > documentation, FAQ, CRAN etc. I found nothing. But as i am very new to > R, I > might have not searched in the right place. > > Thanks, > Alexander > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Alexander Schinner wrote:> Hi, > > can somebody tell me, if there is a C or C++ Interface to the R? Reading the > documentation, FAQ, CRAN etc. I found nothing. But as i am very new to R, I > might have not searched in the right place.Yes, there is. You want to look in the "Writing R Extensions" manual. The easiest thing is to write C routines to be called from R, but you can also call some R functions or R itself from a C program. Duncan Murdoch
On Tue, 12 Apr 2005, Duncan Murdoch wrote:> Alexander Schinner wrote:>> can somebody tell me, if there is a C or C++ Interface to the R? Reading >> the documentation, FAQ, CRAN etc. I found nothing. But as i am very new to >> R, I might have not searched in the right place. > > Yes, there is. You want to look in the "Writing R Extensions" manual. > > The easiest thing is to write C routines to be called from R, but you can > also call some R functions or R itself from a C program.If you want to do the latter, please use the R 2.1.0 beta which has more convenience functions and much more extensive documentation. If you are using a Unix-alike OS, see also the examples in tests/Embedding (which work in 2.1.0 beta but not in 2.0.1). -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595