CRAN Package Check Results for Package geodetector

Last updated on 2020-01-27 00:48:03 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0-3 4.10 38.92 43.02 ERROR
r-devel-linux-x86_64-debian-gcc 1.0-3 3.64 29.73 33.37 OK
r-devel-linux-x86_64-fedora-clang 1.0-3 51.10 NOTE
r-devel-linux-x86_64-fedora-gcc 1.0-3 50.30 NOTE
r-devel-windows-ix86+x86_64 1.0-3 11.00 63.00 74.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.0-3 12.00 52.00 64.00 OK
r-patched-linux-x86_64 1.0-3 3.32 34.16 37.48 OK
r-patched-solaris-x86 1.0-3 67.10 NOTE
r-release-linux-x86_64 1.0-3 3.72 33.85 37.57 OK
r-release-windows-ix86+x86_64 1.0-3 7.00 45.00 52.00 OK
r-release-osx-x86_64 1.0-3 NOTE
r-oldrel-windows-ix86+x86_64 1.0-3 5.00 46.00 51.00 OK
r-oldrel-osx-x86_64 1.0-3 NOTE

Check Details

Version: 1.0-3
Check: examples
Result: ERROR
    Running examples in 'geodetector-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: interaction_detector
    > ### Title: interaction detector
    > ### Aliases: interaction_detector
    > ### Keywords: detector interaction
    >
    > ### ** Examples
    >
    > data(CollectData)
    > interaction_detector("incidence",c("soiltype","watershed"),CollectData)
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    geodetector
     --- call from context ---
    reshapeMatrix_numeric(Intr_Result_q)
     --- call from argument ---
    if (class(dataset) == "character") dataset = t(as.matrix(dataset))
     --- R stacktrace ---
    where 1: reshapeMatrix_numeric(Intr_Result_q)
    where 2: interaction_detector("incidence", c("soiltype", "watershed"),
     CollectData)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (dataset)
    {
     if (class(dataset) == "character")
     dataset = t(as.matrix(dataset))
     fldName1 <- as.vector(dataset[, 1])
     fldName2 <- as.vector(dataset[, 2])
     fldName <- unique(c(fldName1, fldName2))
     lenFld <- length(fldName)
     CreatMat <- matrix(nrow = lenFld, ncol = lenFld, dimnames = list(fldName,
     fldName))
     lenDt <- nrow(dataset)
     for (i in 1:lenDt) {
     fld1 <- fldName1[i]
     fld2 <- fldName2[i]
     CreatMat[fld1, fld2] <- as.vector(dataset[i, 3])
     CreatMat[fld2, fld1] <- as.vector(dataset[i, 3])
     }
     T_CreatMat <- as.data.frame(CreatMat)
     return(T_CreatMat)
    }
    <bytecode: 0x66585c8>
    <environment: namespace:geodetector>
     --- function search by body ---
    Function reshapeMatrix_numeric in namespace geodetector has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(dataset) == "character") dataset = t(as.matrix(dataset)) :
     the condition has length > 1
    Calls: interaction_detector -> reshapeMatrix_numeric
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.0-3
Check: dependencies in R code
Result: NOTE
    Namespaces in Imports field not imported from:
     ‘maptools’ ‘rgdal’ ‘rgeos’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-osx-x86_64, r-oldrel-osx-x86_64