CRAN Package Check Results for Package gdistance

Last updated on 2020-02-17 17:52:08 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.2-2 24.16 143.74 167.90 ERROR
r-devel-linux-x86_64-debian-gcc 1.2-2 20.73 110.09 130.82 ERROR
r-devel-linux-x86_64-fedora-clang 1.2-2 198.43 ERROR
r-devel-linux-x86_64-fedora-gcc 1.2-2 199.68 ERROR
r-devel-windows-ix86+x86_64 1.2-2 33.00 145.00 178.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.2-2 52.00 203.00 255.00 OK
r-patched-linux-x86_64 1.2-2 22.76 131.89 154.65 OK
r-patched-solaris-x86 1.2-2 263.90 OK
r-release-linux-x86_64 1.2-2 18.08 132.03 150.11 OK
r-release-windows-ix86+x86_64 1.2-2 30.00 140.00 170.00 OK
r-release-osx-x86_64 1.2-2 OK
r-oldrel-windows-ix86+x86_64 1.2-2 22.00 140.00 162.00 OK
r-oldrel-osx-x86_64 1.2-2 OK

Check Details

Version: 1.2-2
Check: examples
Result: ERROR
    Running examples in 'gdistance-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: accCost
    > ### Title: Accumulated Cost Surface
    > ### Aliases: accCost accCost,TransitionLayer,RasterLayer-method
    > ### accCost,TransitionLayer,Coords-method
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > #example equivalent to that in the documentation on r.cost in GRASS
    > r <- raster(nrows=6, ncols=7, xmn=0, xmx=7, ymn=0, ymx=6, crs="+proj=utm +units=m")
    >
    > r[] <- c(2, 2, 1, 1, 5, 5, 5,
    + 2, 2, 8, 8, 5, 2, 1,
    + 7, 1, 1, 8, 2, 2, 2,
    + 8, 7, 8, 8, 8, 8, 5,
    + 8, 8, 1, 1, 5, 3, 9,
    + 8, 1, 1, 2, 5, 3, 9)
    >
    > T <- transition(r, function(x) 1/mean(x), 8)
    > # 1/mean: reciprocal to get permeability
    > T <- geoCorrection(T)
    >
    > c1 <- c(5.5,1.5)
    > c2 <- c(1.5,5.5)
    >
    > A <- accCost(T, c1)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: accCost(T, c1)
    where 3: accCost(T, c1)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0x12ff2b88>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Coords) == "matrix") { : the condition has length > 1
    Calls: accCost -> accCost -> .coordsToMatrix
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2-2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building 'gdistance1.Rnw' using Sweave
    Loading required package: raster
    Loading required package: sp
    Loading required package: igraph
    
    Attaching package: 'igraph'
    
    The following object is masked from 'package:raster':
    
     union
    
    The following objects are masked from 'package:stats':
    
     decompose, spectrum
    
    The following object is masked from 'package:base':
    
     union
    
    Loading required package: Matrix
    
    Attaching package: 'gdistance'
    
    The following object is masked from 'package:igraph':
    
     normalize
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: .cd2(x, fromCoords)
    where 3: .local(x, fromCoords)
    where 4: costDistance(tr3C, sP)
    where 5: costDistance(tr3C, sP)
    where 6: eval(expr, .GlobalEnv)
    where 7: eval(expr, .GlobalEnv)
    where 8: withVisible(eval(expr, .GlobalEnv))
    where 9: doTryCatch(return(expr), name, parentenv, handler)
    where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 11: tryCatchList(expr, classes, parentenv, handlers)
    where 12: tryCatch(expr, error = function(e) {
     call <- conditionCall(e)
     if (!is.null(call)) {
     if (identical(call[[1L]], quote(doTryCatch)))
     call <- sys.call(-4L)
     dcall <- deparse(call)[1L]
     prefix <- paste("Error in", dcall, ": ")
     LONG <- 75L
     sm <- strsplit(conditionMessage(e), "\n")[[1L]]
     w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
     if (is.na(w))
     w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
     type = "b")
     if (w > LONG)
     prefix <- paste0(prefix, "\n ")
     }
     else prefix <- "Error : "
     msg <- paste0(prefix, conditionMessage(e), "\n")
     .Internal(seterrmessage(msg[1L]))
     if (!silent && isTRUE(getOption("show.error.messages"))) {
     cat(msg, file = outFile)
     .Internal(printDeferredWarnings())
     }
     invisible(structure(msg, class = "try-error", condition = e))
    })
    where 13: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
    where 14: evalFunc(ce, options)
    where 15: tryCatchList(expr, classes, parentenv, handlers)
    where 16: tryCatch(evalFunc(ce, options), finally = {
     cat("\n")
     sink()
    })
    where 17: driver$runcode(drobj, chunk, chunkopts)
    where 18: utils::Sweave(...)
    where 19: engine$weave(file, quiet = quiet, encoding = enc)
    where 20: doTryCatch(return(expr), name, parentenv, handler)
    where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 22: tryCatchList(expr, classes, parentenv, handlers)
    where 23: tryCatch({
     engine$weave(file, quiet = quiet, encoding = enc)
     setwd(startdir)
     output <- find_vignette_product(name, by = "weave", engine = engine)
     if (!have.makefile && vignette_is_tex(output)) {
     texi2pdf(file = output, clean = FALSE, quiet = quiet)
     output <- find_vignette_product(name, by = "texi2pdf",
     engine = engine)
     }
     outputs <- c(outputs, output)
    }, error = function(e) {
     thisOK <<- FALSE
     fails <<- c(fails, file)
     message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",
     file, conditionMessage(e)))
    })
    where 24: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gdistance.Rcheck/vign_test/gdistance",
     ser_elibs = "/tmp/Rtmpc68Ugz/file6faa3a8aeddf.rds")
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0xda7e368>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    
    Error: processing vignette 'gdistance1.Rnw' failed with diagnostics:
     chunk 19 (label = gdistance-13)
    Error in if (class(Coords) == "numeric") { : the condition has length > 1
    
    --- failed re-building 'gdistance1.Rnw'
    
    SUMMARY: processing the following file failed:
     'gdistance1.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2-2
Check: examples
Result: ERROR
    Running examples in ‘gdistance-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: accCost
    > ### Title: Accumulated Cost Surface
    > ### Aliases: accCost accCost,TransitionLayer,RasterLayer-method
    > ### accCost,TransitionLayer,Coords-method
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > #example equivalent to that in the documentation on r.cost in GRASS
    > r <- raster(nrows=6, ncols=7, xmn=0, xmx=7, ymn=0, ymx=6, crs="+proj=utm +units=m")
    >
    > r[] <- c(2, 2, 1, 1, 5, 5, 5,
    + 2, 2, 8, 8, 5, 2, 1,
    + 7, 1, 1, 8, 2, 2, 2,
    + 8, 7, 8, 8, 8, 8, 5,
    + 8, 8, 1, 1, 5, 3, 9,
    + 8, 1, 1, 2, 5, 3, 9)
    >
    > T <- transition(r, function(x) 1/mean(x), 8)
    > # 1/mean: reciprocal to get permeability
    > T <- geoCorrection(T)
    >
    > c1 <- c(5.5,1.5)
    > c2 <- c(1.5,5.5)
    >
    > A <- accCost(T, c1)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: accCost(T, c1)
    where 3: accCost(T, c1)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0x564e672f8d48>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Coords) == "matrix") { : the condition has length > 1
    Calls: accCost -> accCost -> .coordsToMatrix
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.2-2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘gdistance1.Rnw’ using Sweave
    Loading required package: raster
    Loading required package: sp
    Loading required package: igraph
    
    Attaching package: ‘igraph’
    
    The following object is masked from ‘package:raster’:
    
     union
    
    The following objects are masked from ‘package:stats’:
    
     decompose, spectrum
    
    The following object is masked from ‘package:base’:
    
     union
    
    Loading required package: Matrix
    
    Attaching package: ‘gdistance’
    
    The following object is masked from ‘package:igraph’:
    
     normalize
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: .cd2(x, fromCoords)
    where 3: .local(x, fromCoords)
    where 4: costDistance(tr3C, sP)
    where 5: costDistance(tr3C, sP)
    where 6: eval(expr, .GlobalEnv)
    where 7: eval(expr, .GlobalEnv)
    where 8: withVisible(eval(expr, .GlobalEnv))
    where 9: doTryCatch(return(expr), name, parentenv, handler)
    where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 11: tryCatchList(expr, classes, parentenv, handlers)
    where 12: tryCatch(expr, error = function(e) {
     call <- conditionCall(e)
     if (!is.null(call)) {
     if (identical(call[[1L]], quote(doTryCatch)))
     call <- sys.call(-4L)
     dcall <- deparse(call)[1L]
     prefix <- paste("Error in", dcall, ": ")
     LONG <- 75L
     sm <- strsplit(conditionMessage(e), "\n")[[1L]]
     w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
     if (is.na(w))
     w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
     type = "b")
     if (w > LONG)
     prefix <- paste0(prefix, "\n ")
     }
     else prefix <- "Error : "
     msg <- paste0(prefix, conditionMessage(e), "\n")
     .Internal(seterrmessage(msg[1L]))
     if (!silent && isTRUE(getOption("show.error.messages"))) {
     cat(msg, file = outFile)
     .Internal(printDeferredWarnings())
     }
     invisible(structure(msg, class = "try-error", condition = e))
    })
    where 13: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
    where 14: evalFunc(ce, options)
    where 15: tryCatchList(expr, classes, parentenv, handlers)
    where 16: tryCatch(evalFunc(ce, options), finally = {
     cat("\n")
     sink()
    })
    where 17: driver$runcode(drobj, chunk, chunkopts)
    where 18: utils::Sweave(...)
    where 19: engine$weave(file, quiet = quiet, encoding = enc)
    where 20: doTryCatch(return(expr), name, parentenv, handler)
    where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 22: tryCatchList(expr, classes, parentenv, handlers)
    where 23: tryCatch({
     engine$weave(file, quiet = quiet, encoding = enc)
     setwd(startdir)
     output <- find_vignette_product(name, by = "weave", engine = engine)
     if (!have.makefile && vignette_is_tex(output)) {
     texi2pdf(file = output, clean = FALSE, quiet = quiet)
     output <- find_vignette_product(name, by = "texi2pdf",
     engine = engine)
     }
     outputs <- c(outputs, output)
    }, error = function(e) {
     thisOK <<- FALSE
     fails <<- c(fails, file)
     message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",
     file, conditionMessage(e)))
    })
    where 24: tools:::buildVignettes(dir = "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdistance.Rcheck/vign_test/gdistance",
     ser_elibs = "/home/hornik/tmp/scratch/RtmpNyeAJB/file1e666ddc450e.rds")
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0x559cea530268>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    
    Error: processing vignette 'gdistance1.Rnw' failed with diagnostics:
     chunk 19 (label = gdistance-13)
    Error in if (class(Coords) == "numeric") { : the condition has length > 1
    
    --- failed re-building 'gdistance1.Rnw'
    
    SUMMARY: processing the following file failed:
     'gdistance1.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.2-2
Check: examples
Result: ERROR
    Running examples in ‘gdistance-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: accCost
    > ### Title: Accumulated Cost Surface
    > ### Aliases: accCost accCost,TransitionLayer,RasterLayer-method
    > ### accCost,TransitionLayer,Coords-method
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > #example equivalent to that in the documentation on r.cost in GRASS
    > r <- raster(nrows=6, ncols=7, xmn=0, xmx=7, ymn=0, ymx=6, crs="+proj=utm +units=m")
    >
    > r[] <- c(2, 2, 1, 1, 5, 5, 5,
    + 2, 2, 8, 8, 5, 2, 1,
    + 7, 1, 1, 8, 2, 2, 2,
    + 8, 7, 8, 8, 8, 8, 5,
    + 8, 8, 1, 1, 5, 3, 9,
    + 8, 1, 1, 2, 5, 3, 9)
    >
    > T <- transition(r, function(x) 1/mean(x), 8)
    > # 1/mean: reciprocal to get permeability
    > T <- geoCorrection(T)
    >
    > c1 <- c(5.5,1.5)
    > c2 <- c(1.5,5.5)
    >
    > A <- accCost(T, c1)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: accCost(T, c1)
    where 3: accCost(T, c1)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0x1170f868>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Coords) == "matrix") { : the condition has length > 1
    Calls: accCost -> accCost -> .coordsToMatrix
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.2-2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
    --- re-building ‘gdistance1.Rnw’ using Sweave
    Loading required package: raster
    Loading required package: sp
    Loading required package: igraph
    
    Attaching package: ‘igraph’
    
    The following object is masked from ‘package:raster’:
    
     union
    
    The following objects are masked from ‘package:stats’:
    
     decompose, spectrum
    
    The following object is masked from ‘package:base’:
    
     union
    
    Loading required package: Matrix
    
    Attaching package: ‘gdistance’
    
    The following object is masked from ‘package:igraph’:
    
     normalize
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: .cd2(x, fromCoords)
    where 3: .local(x, fromCoords)
    where 4: costDistance(tr3C, sP)
    where 5: costDistance(tr3C, sP)
    where 6: eval(expr, .GlobalEnv)
    where 7: eval(expr, .GlobalEnv)
    where 8: withVisible(eval(expr, .GlobalEnv))
    where 9: doTryCatch(return(expr), name, parentenv, handler)
    where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 11: tryCatchList(expr, classes, parentenv, handlers)
    where 12: tryCatch(expr, error = function(e) {
     call <- conditionCall(e)
     if (!is.null(call)) {
     if (identical(call[[1L]], quote(doTryCatch)))
     call <- sys.call(-4L)
     dcall <- deparse(call)[1L]
     prefix <- paste("Error in", dcall, ": ")
     LONG <- 75L
     sm <- strsplit(conditionMessage(e), "\n")[[1L]]
     w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
     if (is.na(w))
     w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
     type = "b")
     if (w > LONG)
     prefix <- paste0(prefix, "\n ")
     }
     else prefix <- "Error : "
     msg <- paste0(prefix, conditionMessage(e), "\n")
     .Internal(seterrmessage(msg[1L]))
     if (!silent && isTRUE(getOption("show.error.messages"))) {
     cat(msg, file = outFile)
     .Internal(printDeferredWarnings())
     }
     invisible(structure(msg, class = "try-error", condition = e))
    })
    where 13: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
    where 14: evalFunc(ce, options)
    where 15: tryCatchList(expr, classes, parentenv, handlers)
    where 16: tryCatch(evalFunc(ce, options), finally = {
     cat("\n")
     sink()
    })
    where 17: driver$runcode(drobj, chunk, chunkopts)
    where 18: utils::Sweave(...)
    where 19: engine$weave(file, quiet = quiet, encoding = enc)
    where 20: doTryCatch(return(expr), name, parentenv, handler)
    where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 22: tryCatchList(expr, classes, parentenv, handlers)
    where 23: tryCatch({
     engine$weave(file, quiet = quiet, encoding = enc)
     setwd(startdir)
     output <- find_vignette_product(name, by = "weave", engine = engine)
     if (!have.makefile && vignette_is_tex(output)) {
     texi2pdf(file = output, clean = FALSE, quiet = quiet)
     output <- find_vignette_product(name, by = "texi2pdf",
     engine = engine)
     }
     outputs <- c(outputs, output)
    }, error = function(e) {
     thisOK <<- FALSE
     fails <<- c(fails, file)
     message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",
     file, conditionMessage(e)))
    })
    where 24: tools:::buildVignettes(dir = "/data/gannet/ripley/R/packages/tests-clang/gdistance.Rcheck/vign_test/gdistance",
     ser_elibs = "/tmp/RtmpTvYjB8/file198346bd4db6.rds")
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0xefe12d0>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    
    Error: processing vignette 'gdistance1.Rnw' failed with diagnostics:
     chunk 19 (label = gdistance-13)
    Error in if (class(Coords) == "numeric") { : the condition has length > 1
    
    --- failed re-building 'gdistance1.Rnw'
    
    SUMMARY: processing the following file failed:
     'gdistance1.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.2-2
Check: examples
Result: ERROR
    Running examples in ‘gdistance-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: accCost
    > ### Title: Accumulated Cost Surface
    > ### Aliases: accCost accCost,TransitionLayer,RasterLayer-method
    > ### accCost,TransitionLayer,Coords-method
    > ### Keywords: spatial
    >
    > ### ** Examples
    >
    > #example equivalent to that in the documentation on r.cost in GRASS
    > r <- raster(nrows=6, ncols=7, xmn=0, xmx=7, ymn=0, ymx=6, crs="+proj=utm +units=m")
    >
    > r[] <- c(2, 2, 1, 1, 5, 5, 5,
    + 2, 2, 8, 8, 5, 2, 1,
    + 7, 1, 1, 8, 2, 2, 2,
    + 8, 7, 8, 8, 8, 8, 5,
    + 8, 8, 1, 1, 5, 3, 9,
    + 8, 1, 1, 2, 5, 3, 9)
    >
    > T <- transition(r, function(x) 1/mean(x), 8)
    > # 1/mean: reciprocal to get permeability
    > T <- geoCorrection(T)
    >
    > c1 <- c(5.5,1.5)
    > c2 <- c(1.5,5.5)
    >
    > A <- accCost(T, c1)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: accCost(T, c1)
    where 3: accCost(T, c1)
    
     --- value of length: 2 type: logical ---
    [1] TRUE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0x1329d078>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Coords) == "matrix") { : the condition has length > 1
    Calls: accCost -> accCost -> .coordsToMatrix
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.2-2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
    --- re-building ‘gdistance1.Rnw’ using Sweave
    Loading required package: raster
    Loading required package: sp
    Loading required package: igraph
    
    Attaching package: ‘igraph’
    
    The following object is masked from ‘package:raster’:
    
     union
    
    The following objects are masked from ‘package:stats’:
    
     decompose, spectrum
    
    The following object is masked from ‘package:base’:
    
     union
    
    Loading required package: Matrix
    
    Attaching package: ‘gdistance’
    
    The following object is masked from ‘package:igraph’:
    
     normalize
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    gdistance
     --- call from context ---
    .coordsToMatrix(fromCoords)
     --- call from argument ---
    if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
    }
     --- R stacktrace ---
    where 1: .coordsToMatrix(fromCoords)
    where 2: .cd2(x, fromCoords)
    where 3: .local(x, fromCoords)
    where 4: costDistance(tr3C, sP)
    where 5: costDistance(tr3C, sP)
    where 6: eval(expr, .GlobalEnv)
    where 7: eval(expr, .GlobalEnv)
    where 8: withVisible(eval(expr, .GlobalEnv))
    where 9: doTryCatch(return(expr), name, parentenv, handler)
    where 10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 11: tryCatchList(expr, classes, parentenv, handlers)
    where 12: tryCatch(expr, error = function(e) {
     call <- conditionCall(e)
     if (!is.null(call)) {
     if (identical(call[[1L]], quote(doTryCatch)))
     call <- sys.call(-4L)
     dcall <- deparse(call)[1L]
     prefix <- paste("Error in", dcall, ": ")
     LONG <- 75L
     sm <- strsplit(conditionMessage(e), "\n")[[1L]]
     w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
     if (is.na(w))
     w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
     type = "b")
     if (w > LONG)
     prefix <- paste0(prefix, "\n ")
     }
     else prefix <- "Error : "
     msg <- paste0(prefix, conditionMessage(e), "\n")
     .Internal(seterrmessage(msg[1L]))
     if (!silent && isTRUE(getOption("show.error.messages"))) {
     cat(msg, file = outFile)
     .Internal(printDeferredWarnings())
     }
     invisible(structure(msg, class = "try-error", condition = e))
    })
    where 13: try(withVisible(eval(expr, .GlobalEnv)), silent = TRUE)
    where 14: evalFunc(ce, options)
    where 15: tryCatchList(expr, classes, parentenv, handlers)
    where 16: tryCatch(evalFunc(ce, options), finally = {
     cat("\n")
     sink()
    })
    where 17: driver$runcode(drobj, chunk, chunkopts)
    where 18: utils::Sweave(...)
    where 19: engine$weave(file, quiet = quiet, encoding = enc)
    where 20: doTryCatch(return(expr), name, parentenv, handler)
    where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
    where 22: tryCatchList(expr, classes, parentenv, handlers)
    where 23: tryCatch({
     engine$weave(file, quiet = quiet, encoding = enc)
     setwd(startdir)
     output <- find_vignette_product(name, by = "weave", engine = engine)
     if (!have.makefile && vignette_is_tex(output)) {
     texi2pdf(file = output, clean = FALSE, quiet = quiet)
     output <- find_vignette_product(name, by = "texi2pdf",
     engine = engine)
     }
     outputs <- c(outputs, output)
    }, error = function(e) {
     thisOK <<- FALSE
     fails <<- c(fails, file)
     message(gettextf("Error: processing vignette '%s' failed with diagnostics:\n%s",
     file, conditionMessage(e)))
    })
    where 24: tools:::buildVignettes(dir = "/data/gannet/ripley/R/packages/tests-devel/gdistance.Rcheck/vign_test/gdistance",
     ser_elibs = "/tmp/RtmpTHp02s/fileb56b2369bb28.rds")
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Coords)
    {
     if (class(Coords) == "numeric") {
     if (length(Coords) == 2) {
     Coords <- t(as.matrix(Coords))
     }
     else {
     stop("coordinates given as a vector, but the vector does not have a length of two")
     }
     }
     if (class(Coords) == "matrix") {
     if (!(ncol(Coords) == 2)) {
     stop("coordinates given as a matrix, but the matrix does not have two columns")
     }
     }
     if (inherits(Coords, "SpatialPoints")) {
     Coords <- coordinates(Coords)
     }
     return(Coords)
    }
    <bytecode: 0xf6f8df0>
    <environment: namespace:gdistance>
     --- function search by body ---
    Function .coordsToMatrix in namespace gdistance has this body.
     ----------- END OF FAILURE REPORT --------------
    
    Error: processing vignette 'gdistance1.Rnw' failed with diagnostics:
     chunk 19 (label = gdistance-13)
    Error in if (class(Coords) == "numeric") { : the condition has length > 1
    
    --- failed re-building 'gdistance1.Rnw'
    
    SUMMARY: processing the following file failed:
     'gdistance1.Rnw'
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc