Message-ID: <22661.24954.936698.261235@max.nulle.part>
Date: 2017-01-23T01:50:50Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] Using Rcpp to solve ODEs: LSODE (deSolve) says "Confusion over the length of parms"
In-Reply-To: <HE1PR04MB1433688D5F82ED855B117535F4710@HE1PR04MB1433.eurprd04.prod.outlook.com>
Frank,
That's a pretty long message and a lot of code. Can you try to distill it
down to a particular (smaller?) issue?
And FWIW I cannot run. After saving your attachment, and installing PopED, I
get
R> source("/tmp/myExampleODE.compiled.R")
Attaching package: ?deSolve?
The following object is masked from ?package:graphics?:
matplot
Elapsed time: 10.425 seconds.
Error in poped.db$settings$optsw[2] <- opt_xt :
object 'poped.db.compiled' not found
R>
I also recommend the rbenchmark and microbenchmark packages over tic() and toc().
Sorry that I have no quick fix.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org