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
Post a Comment