[R-sig-dyn-mod] deSolve with compiled code and varying size of parms

Tim Keitt tkeitt at utexas.edu
Thu Mar 30 15:43:08 CEST 2017


On Thu, Mar 30, 2017 at 4:06 AM, Rampal Etienne <rampaletienne at gmail.com>
wrote:

> I guess odeintr is a bit more flexible in that it does not need to save
> a file somewhere.
>

Take a look at "Rcpp::sourceCpp", especially the "cacheDir" argument. The
"compile_sys" functions pass the "..." args to "sourceCpp", so you can
customize the behavior. You could for example have it save your dll's to a
user directory for later reuse. "sourceCpp" knows not to recompile if the
source file has not changed; it just reuses the dll.

THK

http://www.keittlab.org/

	[[alternative HTML version deleted]]



More information about the R-sig-dynamic-models mailing list