- using R Under development (unstable) (2019-12-14 r77569)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: ISO8859-15
- checking for file 'sampSurf/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'sampSurf' version '0.7-4'
- 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 serialization versions ... OK
- checking whether package 'sampSurf' can be installed ... OK
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking 'build' 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 use of S3 registration ... OK
- checking 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 ... [34s/38s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 files in 'vignettes' ... OK
- checking examples ... ERROR
Running examples in 'sampSurf-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: antitheticContainer
> ### Title: Generate Objects of Class "'antitheticContainer'"
> ### Aliases: antitheticContainer
>
> ### ** Examples
>
> sTrees = standingTrees(5, startSeed = 12)
----------- FAILURE REPORT --------------
--- failure: the condition has length > 1 ---
--- srcref ---
:
--- package (from environment) ---
sampSurf
--- call from context ---
validityMethod(as(object, superClass))
--- call from argument ---
if (!class(object@bbox) == "matrix") return("bbox slot must be a 2x2 matrix")
--- R stacktrace ---
where 1: validityMethod(as(object, superClass))
where 2: isTRUE(x)
where 3: anyStrings(validityMethod(as(object, superClass)))
where 4: validObject(.Object)
where 5: initialize(value, ...)
where 6: initialize(value, ...)
where 7: new("standingTrees", trees = trees, bbox = bbox, units = trees[[1]]@units,
stats = stats, description = description)
where 8: .local(object, ...)
where 9: standingTrees(stl, units = units, ...)
where 10: standingTrees(stl, units = units, ...)
where 11: .local(object, ...)
where 12: standingTrees(strees, units = units, ...)
where 13: standingTrees(strees, units = units, ...)
where 14: .local(object, container, ...)
where 15: standingTrees(numTrees, sampleRect, units = units, ...)
where 16: standingTrees(numTrees, sampleRect, units = units, ...)
where 17: .local(object, ...)
where 18: standingTrees(5, startSeed = 12)
where 19: standingTrees(5, startSeed = 12)
--- value of length: 2 type: logical ---
[1] FALSE TRUE
--- function from context ---
function (object)
{
if (!(object@units %in% .StemEnv$msrUnits))
return("units of measure must be \"English\" or \"metric\"")
if (!class(object@bbox) == "matrix")
return("bbox slot must be a 2x2 matrix")
bboxNames = match(rownames(object@bbox), c("x", "y"))
if (any(is.na(bboxNames)))
return("slot bbox rownames must be \"x\", \"y\"!")
bboxNames = match(colnames(object@bbox), c("min", "max"))
if (any(is.na(bboxNames)))
return("slot bbox colnames must be \"min\", \"max\"!")
return(TRUE)
}
<bytecode: 0x3d65de8>
<environment: namespace:sampSurf>
--- function search by body ---
----------- END OF FAILURE REPORT --------------
Error in if (!class(object@bbox) == "matrix") return("bbox slot must be a 2x2 matrix") :
the condition has length > 1
Calls: standingTrees ... validObject -> anyStrings -> isTRUE -> validityMethod
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [3s/5s] OK
- checking PDF version of manual ... OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR