CRAN Package Check Results for Package aqp

Last updated on 2018-02-19 23:50:02 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.15 9.75 94.62 104.37 ERROR
r-devel-linux-x86_64-debian-gcc 1.15 9.87 79.43 89.30 ERROR
r-devel-linux-x86_64-fedora-clang 1.15 136.38 ERROR
r-devel-linux-x86_64-fedora-gcc 1.15 132.71 ERROR
r-devel-windows-ix86+x86_64 1.15 19.00 105.00 124.00 ERROR
r-patched-linux-x86_64 1.15 6.88 104.14 111.02 ERROR
r-patched-solaris-x86 1.15 194.50 ERROR
r-release-linux-x86_64 1.15 7.31 104.76 112.07 ERROR
r-release-windows-ix86+x86_64 1.15 20.00 149.00 169.00 ERROR
r-release-osx-x86_64 1.15 OK
r-oldrel-windows-ix86+x86_64 1.15 17.00 142.00 159.00 ERROR
r-oldrel-osx-x86_64 1.15 OK

Check Details

Version: 1.15
Check: examples
Result: ERROR
    Running examples in ‘aqp-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: addBracket
    > ### Title: Add Depth Brackets
    > ### Aliases: addBracket addDiagnosticBracket
    >
    > ### ** Examples
    >
    > # sample data
    > data(sp1)
    >
    > # add color vector
    > sp1$soil_color <- with(sp1, munsell2rgb(hue, value, chroma))
    >
    > # promote to SoilProfileCollection
    > depths(sp1) <- id ~ top + bottom
    >
    > # plot profiles
    > plot(sp1)
    guessing horizon designations are stored in `name`
    >
    > # extract top/bottom depths associated with all A horizons
    > f <- function(i) {
    + h <- horizons(i)
    + idx <- grep('^A', h$name)
    + c(min(h$top[idx]), max(h$bottom[idx], na.rm=TRUE))
    + }
    >
    > # apply function to sp1, result is a list
    > a <- profileApply(sp1, f, simplify=FALSE)
    > # convert list into matrix
    > a <- do.call('rbind', a)
    >
    > # plot
    > plot(sp1)
    guessing horizon designations are stored in `name`
    > # annotate with brackets
    > # note that plotting order is derived from the call to `plot(sp1)`
    > addBracket(a[, 1], a[, 2], col='red')
    >
    > # more interesting example using diagnostic horizons
    > if(require(soilDB)) {
    + # load some sample data with diagnostic horizons
    + data(loafercreek)
    +
    + # extract first 15 profiles
    + x <- loafercreek[1:15, ]
    + s <- site(x)
    +
    + # plot
    + par(mar=c(0,0,0,0))
    + plot(x, name='hzname', id.style='top')
    +
    + # add brackets describing the argillic horizon
    + addDiagnosticBracket(x, 'argillic horizon', col='red')
    + # add brackets describing paralithic contact
    + addDiagnosticBracket(x, 'paralithic contact', col='blue')
    + }
    Loading required package: soilDB
    Error in segments(x.1, top[plot.order], x.2, top[plot.order], lend = 2, :
     cannot mix zero-length and non-zero-length coordinates
    Calls: addDiagnosticBracket -> addBracket -> segments
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 1.15
Check: examples
Result: ERROR
    Running examples in ‘aqp-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: addBracket
    > ### Title: Add Depth Brackets
    > ### Aliases: addBracket addDiagnosticBracket
    >
    > ### ** Examples
    >
    > # sample data
    > data(sp1)
    >
    > # add color vector
    > sp1$soil_color <- with(sp1, munsell2rgb(hue, value, chroma))
    >
    > # promote to SoilProfileCollection
    > depths(sp1) <- id ~ top + bottom
    >
    > # plot profiles
    > plot(sp1)
    guessing horizon designations are stored in `name`
    >
    > # extract top/bottom depths associated with all A horizons
    > f <- function(i) {
    + h <- horizons(i)
    + idx <- grep('^A', h$name)
    + c(min(h$top[idx]), max(h$bottom[idx], na.rm=TRUE))
    + }
    >
    > # apply function to sp1, result is a list
    > a <- profileApply(sp1, f, simplify=FALSE)
    > # convert list into matrix
    > a <- do.call('rbind', a)
    >
    > # plot
    > plot(sp1)
    guessing horizon designations are stored in `name`
    > # annotate with brackets
    > # note that plotting order is derived from the call to `plot(sp1)`
    > addBracket(a[, 1], a[, 2], col='red')
    >
    > # more interesting example using diagnostic horizons
    > if(require(soilDB)) {
    + # load some sample data with diagnostic horizons
    + data(loafercreek)
    +
    + # extract first 15 profiles
    + x <- loafercreek[1:15, ]
    + s <- site(x)
    +
    + # plot
    + par(mar=c(0,0,0,0))
    + plot(x, name='hzname', id.style='top')
    +
    + # add brackets describing the argillic horizon
    + addDiagnosticBracket(x, 'argillic horizon', col='red')
    + # add brackets describing paralithic contact
    + addDiagnosticBracket(x, 'paralithic contact', col='blue')
    + }
    Loading required package: soilDB
    Error in segments(x.1, top[plot.order], x.2, top[plot.order], lend = 2, :
     cannot mix zero-length and non-zero-length coordinates
    Calls: addDiagnosticBracket -> addBracket -> segments
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64