-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding arima.c, make build work #233
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
@bddbot add to whitelist |
Looks good! I think you are probably missing an entry in the stat package's NAMESPACE file. Can you also add a simple test case for the Thanks again! |
@@ -41,7 +41,11 @@ SEXP nextn(SEXP n, SEXP factors); | |||
|
|||
SEXP cfilter(SEXP sx, SEXP sfilter, SEXP ssides, SEXP scircular); | |||
SEXP rfilter(SEXP x, SEXP filter, SEXP out); | |||
|
|||
#ifndef R_STATS_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid build conflict: in stats.h there is lowess, and arima.c include both stats.h and statsR.h.
Not quite easy.. After adding stuffs inside arima.c to NAMESPACE, now it report:
Found a do_polyroot function inside complex.c of R source code: Not sure how to get this thing work, I don't even know where to put complex.c. Do you have any clue? |
Yes, this is a bit trickier. polyroot is an internal base function that basically has two parts:
|
ARIMA_Like, | ||
ARIMA_CSS, | ||
TSconv, | ||
getQ0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are all of these functions actually exported and used in the R code, or are some of them internal to the C code? Check the stat's package NAMESPACE file in GNU R:
https://github.com/wch/r-source/blob/trunk/src/library/stats/NAMESPACE
ef9d981
to
efef981
Compare
The arima.c get copied here, it include ARIMA_transPars function. C_ARIMA_transPars is defined in renjin.R. The build is working now, but for some reason the arima() report ERROR: Could not resolve native method ARIMA_transPars.
@akbertram, do you have any clue what I missed? Thanks in advance.