[R] Using R in C++
Jörgen Wallerman
Jorgen.Wallerman at resgeom.slu.se
Thu May 27 10:07:36 CEST 2004
I have read the "Writing R Extensions Guide", and got the impression it is
only possible to access some "basic" mathematical functions from R in C, not
including ks.test(). My question is if it is possible to go further than
those "basic" functions. I guess what I want to do is to execute an R
function within R but from C++, where all execution is started and
controlled from the C-end. For example, it is possible to run R from the
prompt with the function as an argument? How do I then get access to the
result? Is there a better way than that? Is there a C-interface for
ks.test() allowing it to be compiled and included in a C-application? Which
parts in the help am I missing?
-------------------------------------------
Ph. D. Jörgen Wallerman
Swedish University of Agricultural Sciences
Remote Sensing Laboratory
S901 83 UMEÅ
> -----Original Message-----
> From: Vadim Ogranovich [mailto:vograno at evafunds.com]
> Sent: den 26 maj 2004 17:53
> To: Jörgen Wallerman; r-help at stat.math.ethz.ch
> Subject: RE: [R] Using R in C++
>
>
> Look at "Writing R Extensions" guide. It covers both R-from-C
> and C-from-R.
>
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jörgen
> > Wallerman
> > Sent: Wednesday, May 26, 2004 3:09 AM
> > To: 'r-help at stat.math.ethz.ch'
> > Subject: [R] Using R in C++
> >
> >
> > Hello,
> >
> > Is it possible to use R functions (in my case: ks.test()) from C++
> > -applications? That is, I get the impression R can execute C/C++
> > code, but is there any possibility to do the opposite? Where can I
> > find help?
> >
> >
> > -------------------------------------------
> > Ph. D. Jörgen Wallerman
> > Swedish University of Agricultural Sciences
> > Remote Sensing Laboratory
> > S901 83 UMEÅ
> >
> > ###########################################
> >
> > This message has been scanned by F-Secure
> > Anti-Virus for Microsoft Exchange.
> >
> > ###########################################
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo> /r-help PLEASE
> > do read the posting guide!
> > http://www.R-project.org/posting-guide.html
> >
>
###########################################
This message has been scanned by F-Secure
Anti-Virus for Microsoft Exchange.
###########################################
More information about the R-help
mailing list