CRAN Package Check Results for Package trimcluster

Last updated on 2018-06-24 22:49:45 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1-2 0.96 17.84 18.80 ERROR
r-devel-linux-x86_64-debian-gcc 0.1-2 0.75 14.02 14.77 ERROR
r-devel-linux-x86_64-fedora-clang 0.1-2 22.03 NOTE
r-devel-linux-x86_64-fedora-gcc 0.1-2 21.07 NOTE
r-devel-windows-ix86+x86_64 0.1-2 3.00 30.00 33.00 NOTE
r-patched-linux-x86_64 0.1-2 0.90 16.53 17.43 ERROR
r-patched-solaris-x86 0.1-2 36.90 NOTE
r-release-linux-x86_64 0.1-2 0.69 16.56 17.25 ERROR
r-release-windows-ix86+x86_64 0.1-2 3.00 41.00 44.00 NOTE
r-release-osx-x86_64 0.1-2 NOTE
r-oldrel-windows-ix86+x86_64 0.1-2 4.00 38.00 42.00 NOTE
r-oldrel-osx-x86_64 0.1-2 NOTE

Check Details

Version: 0.1-2
Check: dependencies in R code
Result: NOTE
    'library' or 'require' call to ‘fpc’ in package code.
     Please use :: or requireNamespace() instead.
     See section 'Suggested packages' in the 'Writing R Extensions' manual.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 0.1-2
Check: S3 generic/method consistency
Result: NOTE
    Found the following apparent S3 methods exported but not registered:
     plot.tkm print.tkm
    See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
    manual.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64

Version: 0.1-2
Check: R code for possible problems
Result: NOTE
    plot.tkm: no visible global function definition for ‘plotcluster’
    plot.tkm: no visible global function definition for ‘plot’
    plot.tkm: no visible global function definition for ‘points’
    plot.tkm: no visible global function definition for ‘lines’
    plot.tkm: no visible global function definition for ‘discrcoord’
    Undefined global functions or variables:
     discrcoord lines plot plotcluster points
    Consider adding
     importFrom("graphics", "lines", "plot", "points")
    to your NAMESPACE file.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64

Version: 0.1-2
Check: examples
Result: ERROR
    Running examples in ‘trimcluster-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: trimkmeans
    > ### Title: Trimmed k-means clustering
    > ### Aliases: trimkmeans print.tkm plot.tkm
    > ### Keywords: multivariate cluster
    >
    > ### ** Examples
    >
    > set.seed(10001)
    > n1 <-60
    > n2 <-60
    > n3 <-70
    > n0 <-10
    > nn <- n1+n2+n3+n0
    > pp <- 2
    > X <- matrix(rep(0,nn*pp),nrow=nn)
    > ii <-0
    > for (i in 1:n1){
    + ii <-ii+1
    + X[ii,] <- c(5,-5)+rnorm(2)
    + }
    > for (i in 1:n2){
    + ii <- ii+1
    + X[ii,] <- c(5,5)+rnorm(2)*0.75
    + }
    > for (i in 1:n3){
    + ii <- ii+1
    + X[ii,] <- c(-5,-5)+rnorm(2)*0.75
    + }
    > for (i in 1:n0){
    + ii <- ii+1
    + X[ii,] <- rnorm(2)*8
    + }
    > tkm1 <- trimkmeans(X,k=3,trim=0.1,runs=3)
    > # runs=3 is used to save computing time.
    > print(tkm1)
    $classification
     [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 3 3 3 3 3 3 3 4 3 3 3 3 3 3 3 3 3 3
     [38] 3 3 3 4 3 3 3 3 3 3 3 3 4 3 3 3 3 3 3 3 3 3 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2
     [75] 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 2 2 2 2 2 2 2 2 2 2
    [112] 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    [149] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    [186] 1 1 1 1 1 4 4 4 4 4 4 4 4 4 4
    
    $means
     [,1] [,2]
    [1,] -4.948673 -4.978344
    [2,] 5.125058 5.040808
    [3,] 5.139695 -5.083246
    
    $criterion
    [1] 1.214552
    
    $disttom
     [1] 1.541816e-01 1.956229e+00 4.665663e-01 3.406801e+00 2.524068e+00
     [6] 3.120776e+00 6.634985e-02 3.411989e+00 2.167594e-01 1.030218e-01
     [11] 4.560480e-01 3.147372e+00 7.008501e-01 3.396649e-01 1.446070e+00
     [16] 1.181074e+00 2.806488e-01 1.095922e+01 6.876324e+00 2.310181e+00
     [21] 2.138747e+00 1.257741e+00 1.888836e+00 5.439745e-02 5.319406e-01
     [26] 3.346895e+00 4.001681e+00 4.675588e-01 1.516785e-01 4.045434e-01
     [31] 1.389719e-01 1.082264e+00 1.706471e+00 2.801842e+00 1.633844e+00
     [36] 8.455512e-01 9.526188e-03 3.440655e+00 3.093630e+00 3.672433e+00
     [41] 6.161915e+00 2.966351e+00 4.990796e-01 2.475831e+00 2.016802e+00
     [46] 3.459403e+00 3.042078e+00 7.597896e-01 2.714925e+00 4.065552e+00
     [51] 1.127094e+00 1.213628e+00 3.263410e+00 5.649635e-01 5.492694e-01
     [56] 1.662565e+00 2.041032e+00 4.934903e-01 3.296880e+00 7.208556e+00
     [61] 1.678384e+00 8.075462e-02 1.025160e+00 2.191515e+00 1.240626e+00
     [66] 1.807970e+00 3.894851e-01 1.184371e+00 4.338564e-02 5.244872e-01
     [71] 1.668244e-01 2.248389e+00 1.459436e-01 1.291047e+00 6.119536e+00
     [76] 3.332578e-01 9.301253e-01 1.374496e-01 7.828594e-02 3.589564e+00
     [81] 1.047432e+00 1.624105e+00 2.364671e+00 2.384529e-01 2.411614e-01
     [86] 2.327268e+00 2.761536e+00 8.726943e-01 1.270860e+00 1.449153e+00
     [91] 3.686693e-02 4.902744e-01 1.189641e+00 2.793741e-01 7.830575e-01
     [96] 1.525570e+00 3.027945e+00 2.147221e+00 3.417168e-01 9.836229e-01
    [101] 5.783953e+00 2.430161e-01 3.574122e-01 1.947489e-01 2.754308e+00
    [106] 2.151238e+00 2.490627e+00 1.616405e+00 1.328522e+00 3.662196e+00
    [111] 3.446488e-01 2.100808e+00 8.711198e-01 1.276470e-02 9.166227e-01
    [116] 2.825834e+00 3.991725e-01 3.869599e+00 3.132977e-01 3.511134e-02
    [121] 1.552769e-01 1.513577e+00 3.842443e-01 1.100907e-01 6.112990e-01
    [126] 1.375088e+00 5.793284e-01 1.809706e+00 6.146321e-02 6.949306e-01
    [131] 7.134143e-02 4.422192e+00 8.454540e-02 8.557622e-01 1.402127e+00
    [136] 2.809625e-01 2.191654e+00 6.711140e-02 2.317564e-01 4.844637e-02
    [141] 2.290895e-01 1.671295e+00 9.660053e-01 8.930328e-01 5.376506e-02
    [146] 3.778953e-04 1.183929e+00 1.698749e-01 5.964466e-01 3.003522e-01
    [151] 1.516209e+00 5.052719e-01 8.754718e-01 8.631442e-01 1.639647e+00
    [156] 3.440358e+00 2.779106e+00 9.100191e-01 1.304831e+00 2.813270e-01
    [161] 3.355623e+00 8.650289e-01 9.214338e-01 3.267768e+00 3.074407e+00
    [166] 8.505951e-02 5.208413e-01 6.747603e-01 1.045286e+00 3.339476e-02
    [171] 4.661233e+00 1.296836e-01 2.018400e-01 4.336730e-01 1.720095e+00
    [176] 8.694266e-01 9.896444e-01 9.667581e-01 1.477568e+00 9.637686e-01
    [181] 1.093602e+00 7.379835e-01 9.100985e-01 8.707487e-03 3.051095e+00
    [186] 1.567514e-01 3.794210e-01 8.104560e-01 2.914672e-01 1.956562e-01
    [191] 9.169344e+00 4.606460e+01 2.009725e+01 5.568841e+01 1.577288e+02
    [196] 1.276407e+01 9.178288e+01 5.095349e+01 3.683485e+01 2.344829e+02
    
    $ropt
    [1] 3.869599
    
    $k
    [1] 3
    
    $trim
    [1] 0.1
    
    $runs
    [1] 3
    
    $scaling
    [1] FALSE
    
    attr(,"class")
    [1] "tkm"
    > plot(tkm1,X)
    Error in xy.coords(x, y, xlabel, ylabel, log) :
     'x' and 'y' lengths differ
    Calls: plot -> plot.default -> xy.coords
    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: 0.1-2
Check: tests
Result: ERROR
     Running ‘examples.R’ [0s/1s]
    Running the tests in ‘tests/examples.R’ failed.
    Complete output:
     > library(trimcluster)
     > example(trimkmeans)
    
     trmkmn> set.seed(10001)
    
     trmkmn> n1 <-60
    
     trmkmn> n2 <-60
    
     trmkmn> n3 <-70
    
     trmkmn> n0 <-10
    
     trmkmn> nn <- n1+n2+n3+n0
    
     trmkmn> pp <- 2
    
     trmkmn> X <- matrix(rep(0,nn*pp),nrow=nn)
    
     trmkmn> ii <-0
    
     trmkmn> for (i in 1:n1){
     trmkmn+ ii <-ii+1
     trmkmn+ X[ii,] <- c(5,-5)+rnorm(2)
     trmkmn+ }
    
     trmkmn> for (i in 1:n2){
     trmkmn+ ii <- ii+1
     trmkmn+ X[ii,] <- c(5,5)+rnorm(2)*0.75
     trmkmn+ }
    
     trmkmn> for (i in 1:n3){
     trmkmn+ ii <- ii+1
     trmkmn+ X[ii,] <- c(-5,-5)+rnorm(2)*0.75
     trmkmn+ }
    
     trmkmn> for (i in 1:n0){
     trmkmn+ ii <- ii+1
     trmkmn+ X[ii,] <- rnorm(2)*8
     trmkmn+ }
    
     trmkmn> tkm1 <- trimkmeans(X,k=3,trim=0.1,runs=3)
    
     trmkmn> # runs=3 is used to save computing time.
     trmkmn> print(tkm1)
     $classification
     [1] 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 3 3 3 3 3 3 3 4 3 3 3 3 3 3 3 3 3 3
     [38] 3 3 3 4 3 3 3 3 3 3 3 3 4 3 3 3 3 3 3 3 3 3 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2
     [75] 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 2 2 2 2 2 2 2 2 2 2
     [112] 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
     [149] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1
     [186] 1 1 1 1 1 4 4 4 4 4 4 4 4 4 4
    
     $means
     [,1] [,2]
     [1,] -4.948673 -4.978344
     [2,] 5.125058 5.040808
     [3,] 5.139695 -5.083246
    
     $criterion
     [1] 1.214552
    
     $disttom
     [1] 1.541816e-01 1.956229e+00 4.665663e-01 3.406801e+00 2.524068e+00
     [6] 3.120776e+00 6.634985e-02 3.411989e+00 2.167594e-01 1.030218e-01
     [11] 4.560480e-01 3.147372e+00 7.008501e-01 3.396649e-01 1.446070e+00
     [16] 1.181074e+00 2.806488e-01 1.095922e+01 6.876324e+00 2.310181e+00
     [21] 2.138747e+00 1.257741e+00 1.888836e+00 5.439745e-02 5.319406e-01
     [26] 3.346895e+00 4.001681e+00 4.675588e-01 1.516785e-01 4.045434e-01
     [31] 1.389719e-01 1.082264e+00 1.706471e+00 2.801842e+00 1.633844e+00
     [36] 8.455512e-01 9.526188e-03 3.440655e+00 3.093630e+00 3.672433e+00
     [41] 6.161915e+00 2.966351e+00 4.990796e-01 2.475831e+00 2.016802e+00
     [46] 3.459403e+00 3.042078e+00 7.597896e-01 2.714925e+00 4.065552e+00
     [51] 1.127094e+00 1.213628e+00 3.263410e+00 5.649635e-01 5.492694e-01
     [56] 1.662565e+00 2.041032e+00 4.934903e-01 3.296880e+00 7.208556e+00
     [61] 1.678384e+00 8.075462e-02 1.025160e+00 2.191515e+00 1.240626e+00
     [66] 1.807970e+00 3.894851e-01 1.184371e+00 4.338564e-02 5.244872e-01
     [71] 1.668244e-01 2.248389e+00 1.459436e-01 1.291047e+00 6.119536e+00
     [76] 3.332578e-01 9.301253e-01 1.374496e-01 7.828594e-02 3.589564e+00
     [81] 1.047432e+00 1.624105e+00 2.364671e+00 2.384529e-01 2.411614e-01
     [86] 2.327268e+00 2.761536e+00 8.726943e-01 1.270860e+00 1.449153e+00
     [91] 3.686693e-02 4.902744e-01 1.189641e+00 2.793741e-01 7.830575e-01
     [96] 1.525570e+00 3.027945e+00 2.147221e+00 3.417168e-01 9.836229e-01
     [101] 5.783953e+00 2.430161e-01 3.574122e-01 1.947489e-01 2.754308e+00
     [106] 2.151238e+00 2.490627e+00 1.616405e+00 1.328522e+00 3.662196e+00
     [111] 3.446488e-01 2.100808e+00 8.711198e-01 1.276470e-02 9.166227e-01
     [116] 2.825834e+00 3.991725e-01 3.869599e+00 3.132977e-01 3.511134e-02
     [121] 1.552769e-01 1.513577e+00 3.842443e-01 1.100907e-01 6.112990e-01
     [126] 1.375088e+00 5.793284e-01 1.809706e+00 6.146321e-02 6.949306e-01
     [131] 7.134143e-02 4.422192e+00 8.454540e-02 8.557622e-01 1.402127e+00
     [136] 2.809625e-01 2.191654e+00 6.711140e-02 2.317564e-01 4.844637e-02
     [141] 2.290895e-01 1.671295e+00 9.660053e-01 8.930328e-01 5.376506e-02
     [146] 3.778953e-04 1.183929e+00 1.698749e-01 5.964466e-01 3.003522e-01
     [151] 1.516209e+00 5.052719e-01 8.754718e-01 8.631442e-01 1.639647e+00
     [156] 3.440358e+00 2.779106e+00 9.100191e-01 1.304831e+00 2.813270e-01
     [161] 3.355623e+00 8.650289e-01 9.214338e-01 3.267768e+00 3.074407e+00
     [166] 8.505951e-02 5.208413e-01 6.747603e-01 1.045286e+00 3.339476e-02
     [171] 4.661233e+00 1.296836e-01 2.018400e-01 4.336730e-01 1.720095e+00
     [176] 8.694266e-01 9.896444e-01 9.667581e-01 1.477568e+00 9.637686e-01
     [181] 1.093602e+00 7.379835e-01 9.100985e-01 8.707487e-03 3.051095e+00
     [186] 1.567514e-01 3.794210e-01 8.104560e-01 2.914672e-01 1.956562e-01
     [191] 9.169344e+00 4.606460e+01 2.009725e+01 5.568841e+01 1.577288e+02
     [196] 1.276407e+01 9.178288e+01 5.095349e+01 3.683485e+01 2.344829e+02
    
     $ropt
     [1] 3.869599
    
     $k
     [1] 3
    
     $trim
     [1] 0.1
    
     $runs
     [1] 3
    
     $scaling
     [1] FALSE
    
     attr(,"class")
     [1] "tkm"
    
     trmkmn> plot(tkm1,X)
     Error in xy.coords(x, y, xlabel, ylabel, log) :
     'x' and 'y' lengths differ
     Calls: example ... withVisible -> eval -> eval -> plot -> plot.default -> xy.coords
     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