RE: [R] Using R in C++

About this list Date view Thread view Subject view Author view Attachment view

From: Jörgen Wallerman (Jorgen.Wallerman@resgeom.slu.se)
Date: Thu 27 May 2004 - 18:07:36 EST


Message-id: <9BE977B02923D311AADA00105AF49783015C97E8@tilia.slu.se>


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@evafunds.com]
> Sent: den 26 maj 2004 17:53
> To: Jörgen Wallerman; r-help@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@stat.math.ethz.ch
> > [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Jörgen
> > Wallerman
> > Sent: Wednesday, May 26, 2004 3:09 AM
> > To: 'r-help@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@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.

###########################################

______________________________________________
R-help@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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST