Compiling C code for ODE Model into .so file for R package -


i organizing r code have written package. code contains mcmc algorithms inference on parameters in ordinary differential equation models, solving ode thousands of times. necessary pass model ode function of desolve package using compiled code instead of r function. normally, use commands

system('r cmd shlib mymodel.c') dyn.load(mymodel) 

to use compiled versions. instead, r automatically generate .so files when install package. cannot find way because these c functions not use r function. need path valid dll pass ode function. doesn't seem make sense make wrapper ode model since can't use function inside of r, maybe confused. cannot find package on cran uses c code in manner, maybe not possible.


Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

java - What is the difference between String. and String.this. ? -