Hi everyone, I meet the problem to call R from C. Can someone tell me is it possible to call time series functions(such as ar and arima)from C program on linux platform, and then compile the C program to a standalone executable file? I know we can call some function defined in Rmath.h , but I have not found the entry point for time series function. I would very much appreciate receiving your response ! ^_^ ------------ bin, dong goon83@126.com Buaa, Beijing PR China [[alternative HTML version deleted]]
On 5/7/2009 9:24 AM, goon83 wrote:> Hi everyone, > I meet the problem to call R from C. > > Can someone tell me is it possible to call time series functions(such as ar and arima)from C program on linux platform, and then compile the C program to a standalone executable file? > > I know we can call some function defined in Rmath.h , but I have not found the entry point for time series function.There are none, but you can write a front end for R, and it can evaluate R expressions, etc. The procedure is described in the Writing R Extensions manual. Remember that if you distribute the program you do need to follow the GPL, and distribute all of R as well as all of your own program in source code form. Duncan Murdoch> > I would very much appreciate receiving your response ! ^_^ > > ------------ > bin, dong > goon83 at 126.com > Buaa, Beijing PR China > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
hi Duncan, tks for you response, it's depressed to know that i can not use time series of R to finish my study. I really think R is powerfull, i used it to finish all my statistic homework last year^_^. but i still wonder can i use the function of time series in the embedded way of C code. Can you give me some suggestion about how to use time series of R in C code? tks -------------------- bin dong goon83@126.com Buaa, Beijing PR China ÔÚ2009-05-07?21:51:13£¬"Duncan?Murdoch"?<murdoch@stats.uwo.ca>?дµÀ£º>On?5/7/2009?9:24?AM,?goon83?wrote: >>?Hi?everyone, >>???I?meet?the?problem?to?call?R?from?C.? >>?? >>???Can?someone?tell?me?is?it?possible?to?call?time?series?functions(such?as?ar?and?arima)from??C?program?on?linux?platform,?and?then?compile?the?C?program?to?a?standalone?executable?file? >>? >>???I?know?we?can?call?some?function?defined?in?Rmath.h?,?but?I?have?not?found?the?entry?point?for?time?series?function.? > >There?are?none,?but?you?can?write?a?front?end?for?R,?and?it?can?evaluate? >R?expressions,?etc.??The?procedure?is?described?in?the?Writing?R? >Extensions?manual. > >Remember?that?if?you?distribute?the?program?you?do?need?to?follow?the? >GPL,?and?distribute?all?of?R?as?well?as?all?of?your?own?program?in? >source?code?form. > >Duncan?Murdoch > >>?? >>???I?would?very?much?appreciate?receiving?your?response?!?^_^ >>? >>?------------ >>?bin,?dong >>?goon83@126.com >>?Buaa,?Beijing?PR?China >>? >>??? >>? >>? [[alternative?HTML?version?deleted]] >>? >>?______________________________________________ >>?R-help@r-project.org?mailing?list >>?https://stat.ethz.ch/mailman/listinfo/r-help >>?PLEASE?do?read?the?posting?guide?http://www.R-project.org/posting-guide.html >>?and?provide?commented,?minimal,?self-contained,?reproducible?code. >[[alternative HTML version deleted]]
Apparently Analagous Threads
- About " Error: C stack usage is too close to the limit"
- About " Error: C stack usage is too close to the limit"
- About " Error: C stack usage is too close to the limit"--resend
- "Error: C stack usage is too close to the limit" (can't understand explanations of how to fix this)
- relationship of the auto_translated_physmap feature and the shadow_mode_translate mode of domain