• using R version 2.15.3 (2013-03-01)
  • using platform: i386-apple-darwin9.8.0 (32-bit)
  • using session charset: UTF-8
  • checking for file ‘spcosa/DESCRIPTION’ ... OK
  • checking extension type ... Package
  • this is package ‘spcosa’ version ‘0.3-3’
  • 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 whether package ‘spcosa’ can be installed ... 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 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 sizes of PDF files under ‘inst/doc’ ... OK
  • checking installed files from ‘inst/doc’ ... OK
  • checking examples ... ERROR
    Running examples in ‘spcosa-Ex.R’ failed
    The error most likely occurred in:

    > ### Name: estimate-methods
    > ### Title: Estimating Statistics
    > ### Aliases: estimate-methods estimate
    > ### estimate,character,CompactStratification,SamplingPatternRandomSamplingUnits,data.frame-method
    > ### estimate,character,CompactStratificationEqualArea,SamplingPatternRandomComposite,data.frame-method
    > ### estimate,SamplingVariance,CompactStratification,SamplingPatternRandomSamplingUnits,data.frame-method
    > ### estimate,SamplingVariance,CompactStratificationEqualArea,SamplingPatternRandomComposite,data.frame-method
    > ### estimate,SpatialCumulativeDistributionFunction,CompactStratification,SamplingPatternRandomSamplingUnits,data.frame-method
    > ### estimate,SpatialMean,CompactStratification,SamplingPatternRandomSamplingUnits,data.frame-method
    > ### estimate,SpatialMean,CompactStratificationEqualArea,SamplingPatternRandomComposite,data.frame-method
    > ### estimate,SpatialVariance,CompactStratification,SamplingPatternRandomSamplingUnits,data.frame-method
    > ### estimate,StandardError,CompactStratification,SamplingPatternRandomSamplingUnits,data.frame-method
    > ### Keywords: methods
    >
    > ### ** Examples
    >
    >
    > # Note: the example below requires the 'rgdal'-package.
    > # You may consider the 'maptools'-package as an alternative
    > if (require(rgdal)) {
    + # read vector representation of the "Mijdrecht" area
    + shp <- readOGR(
    + dsn = system.file("maps", package = "spcosa"),
    + layer = "mijdrecht"
    + )
    +
    + # stratify into 30 strata
    + myStratification <- stratify(shp, nStrata = 30, nTry = 10, verbose = TRUE)
    +
    + # random sampling of two sampling units per stratum
    + mySamplingPattern <- spsample(myStratification, n = 2)
    +
    + # plot sampling pattern
    + plot(myStratification, mySamplingPattern)
    +
    + # simulate data
    + # (in real world cases these data have to be obtained by field work etc.)
    + myData <- as(mySamplingPattern, "data.frame")
    + myData$observation <- rnorm(n = nrow(myData), mean = 10, sd = 1)
    +
    + # design-based inference
    + estimate("spatial mean", myStratification, mySamplingPattern, myData["observation"])
    + estimate("sampling variance", myStratification, mySamplingPattern, myData["observation"])
    + estimate("standard error", myStratification, mySamplingPattern, myData["observation"])
    + estimate("spatial variance", myStratification, mySamplingPattern, myData["observation"])
    + estimate("scdf", myStratification, mySamplingPattern, myData["observation"])
    + }
    Loading required package: rgdal
    Loading required package: sp
    rgdal: version: 0.8-5, (SVN revision 449)
    Geospatial Data Abstraction Library extensions to R successfully loaded
    Loaded GDAL runtime: GDAL 1.9.0, released 2011/12/29
    Path to GDAL shared files: /Volumes/XT3/Rdev-web/QA/Simon/packages/leopard-universal/Rlib/2.15/rgdal/gdal
    Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
    Path to PROJ.4 shared files: /Volumes/XT3/Rdev-web/QA/Simon/packages/leopard-universal/Rlib/2.15/rgdal/proj
    OGR data source with driver: ESRI Shapefile
    Source: "/Volumes/XT3/Rdev-web/QA/Simon/packages/leopard-universal/results/2.15/spcosa.Rcheck/spcosa/maps", layer: "mijdrecht"
    with 1 features and 2 fields
    Feature type: wkbPolygon with 2 dimensions
    Error in .jfindClass(o) : class not found
    Calls: stratify ... stratify -> stratify -> .local -> J -> .jrcall -> .jfindClass
    Execution halted
  • elapsed time (check, wall clock): 0:57