- using R version 3.0.1 Patched (2013-05-16 r62757)
- using platform: x86_64-unknown-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘odesolve/DESCRIPTION’ ... OK
- this is package ‘odesolve’ version ‘0.9-9’
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘odesolve’ can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking for unstated dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking for portable compilation flags in Makevars ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking compiled code ... OK
- checking examples ... ERROR
Running examples in ‘odesolve-Ex.R’ failed
The error most likely occurred in:
> ### Name: lsoda
> ### Title: Solve System of ODE (ordinary differential equation)s.
> ### Aliases: lsoda
> ### Keywords: math
>
> ### ** Examples
>
> ### lsexamp -- example from lsoda source code
>
> ## names makes this easier to read, but may slow down execution.
> parms <- c(k1=0.04, k2=1e4, k3=3e7)
> my.atol <- c(1e-6, 1e-10, 1e-6)
> times <- c(0,4 * 10^(-1:10))
> lsexamp <- function(t, y, p)
+ {
+ yd1 <- -p["k1"] * y[1] + p["k2"] * y[2]*y[3]
+ yd3 <- p["k3"] * y[2]^2
+ list(c(yd1,-yd1-yd3,yd3),c(massbalance=sum(y)))
+ }
> exampjac <- function(t, y, p)
+ {
+ c(-p["k1"], p["k1"], 0,
+
+ p["k2"]*y[3],
+ - p["k2"]*y[3] - 2*p["k3"]*y[2],
+ 2*p["k3"]*y[2],
+
+ p["k2"]*y[2], -p["k2"]*y[2], 0
+ )
+ }
>
> require(odesolve)
> ## measure speed (here and below)
> system.time(
+ out <- lsoda(c(1,0,0),times,lsexamp, parms, rtol=1e-4, atol= my.atol)
+ )
At line 1155 of file lsoda.f
Fortran runtime error: Index '2' of dimension 1 of array 'atol' above upper bound of 1