- using R Under development (unstable) (2012-05-22 r59401)
- using platform: x86_64-unknown-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘SpatialExtremes/DESCRIPTION’ ... OK
- this is package ‘SpatialExtremes’ version ‘1.8-1’
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... WARNING
As from R 2.14.0 all packages need a namespace.
One will be generated on installation, but it is better to handcraft a
NAMESPACE file: R CMD build will produce a suitable starting point.
CRAN requires a NAMESPACE file for all submissions.
- checking for executable files ... OK
- checking whether package ‘SpatialExtremes’ can be installed ... [14s/23s] OK
- checking installed package size ... OK
- checking package directory ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level 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 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 ... NOTE
map.latent: warning in layout(matrix(1:6, 1), width = rep(c(1, 0.4),
3)): partial argument match of 'width' to 'widths'
- 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 sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... NOTE
The following files should probably not be installed:
‘layout.sty’
The following directories should probably not be installed:
‘Figures’
Consider the use of a .Rinstignore file: see ‘Writing R Extensions’,
or move the vignette sources from ‘inst/doc’ to ‘vignettes’.
- checking examples ... ERROR
Running examples in ‘SpatialExtremes-Ex.R’ failed
The error most likely occurred in:
> ### Name: DIC
> ### Title: Deviance Information Criterion
> ### Aliases: DIC
> ### Keywords: models
>
> ### ** Examples
>
> ## Generate realizations from the model
> n.site <- 15
> n.obs <- 35
> coord <- cbind(lon = runif(n.site, -10, 10), lat = runif(n.site, -10 , 10))
>
> gp.loc <- rgp(1, coord, "powexp", sill = 4, range = 20, smooth = 1)
> gp.scale <- rgp(1, coord, "powexp", sill = 0.4, range = 5, smooth = 1)
> gp.shape <- rgp(1, coord, "powexp", sill = 0.01, range = 10, smooth = 1)
>
> locs <- 26 + 0.5 * coord[,"lon"] + gp.loc
> scales <- 10 + 0.2 * coord[,"lat"] + gp.scale
> shapes <- 0.15 + gp.shape
>
> data <- matrix(NA, n.obs, n.site)
> for (i in 1:n.site)
+ data[,i] <- rgev(n.obs, locs[i], scales[i], shapes[i])
>
> loc.form <- y ~ lon
> scale.form <- y ~ lat
> shape.form <- y ~ 1
>
> hyper <- list()
> hyper$sills <- list(loc = c(1,8), scale = c(1,1), shape = c(1,0.02))
> hyper$ranges <- list(loc = c(2,20), scale = c(1,5), shape = c(1, 10))
> hyper$smooths <- list(loc = c(1,1/3), scale = c(1,1/3), shape = c(1, 1/3))
> hyper$betaMeans <- list(loc = rep(0, 2), scale = c(9, 0), shape = 0)
> hyper$betaIcov <- list(loc = solve(diag(c(400, 100))),
+ scale = solve(diag(c(400, 100))),
+ shape = solve(diag(c(10), 1, 1)))
>
> ## We will use an exponential covariance function so the jump sizes for
> ## the shape parameter of the covariance function are null.
> prop <- list(gev = c(2.5, 1.5, 0.3), ranges = c(40, 20, 20), smooths = c(0,0,0))
> start <- list(sills = c(4, .36, 0.009), ranges = c(24, 17, 16), smooths
+ = c(1, 1, 1), beta = list(loc = c(26, 0), scale = c(10, 0),
+ shape = c(0.15)))
>
> mc <- latent(data, coord, loc.form = loc.form, scale.form = scale.form,
+ shape.form = shape.form, hyper = hyper, prop = prop, start = start,
+ n = 500)
Error in latent(data, coord, loc.form = loc.form, scale.form = scale.form, :
array over-run in .C("latentgev") in double argument 26
Calls: latent -> .C
Execution halted