CRAN Package Check Results for Maintainer ‘Boxian Wei <boxianwei at gmail.com>’

Last updated on 2020-08-07 01:50:15 CEST.

Package ERROR NOTE
knnGarden 5 7

Package knnGarden

Current CRAN status: ERROR: 5, NOTE: 7

Version: 1.0.1
Check: DESCRIPTION meta-information
Result: NOTE
    Malformed Description field: should contain one or more complete sentences.
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-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.0.1
Check: dependencies in R code
Result: NOTE
    Package in Depends field not imported from: 'cluster'
     These packages need to be imported from (in the NAMESPACE file)
     for when this namespace is loaded but not attached.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.0.1
Check: R code for possible problems
Result: NOTE
    dataFiller : central.value: no visible global function definition for
     'median'
    dataFiller: no visible global function definition for 'daisy'
    dataFiller: no visible global function definition for 'complete.cases'
    knnMCN: no visible global function definition for 'cov'
    knnVCN: no visible global function definition for 'dist'
    Undefined global functions or variables:
     complete.cases cov daisy dist median
    Consider adding
     importFrom("stats", "complete.cases", "cov", "dist", "median")
    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-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 1.0.1
Check: Rd line widths
Result: NOTE
    Rd file 'knnMCN.Rd':
     \examples lines wider than 100 characters:
     ") ", "you have selected is bigger than the capacity of one class in your training data set",
     stop("\nWarnings:\nsample variance-covariance matrix is singular,\nand larger class sample capacity is required ,\nor you can t ... [TRUNCATED]
     stop("\nWarnings:\nsample variance-covariance matrix is singular,\nand larger class sample capacity is required ,\nor y ... [TRUNCATED]
    
    Rd file 'knnVCN.Rd':
     \examples lines wider than 100 characters:
     ") ", "you have selected is bigger than the capacity of one class in your training data set",
    
    These lines will be truncated in the PDF 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-release-linux-x86_64

Version: 1.0.1
Check: examples
Result: ERROR
    Running examples in 'knnGarden-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: knnMCN
    > ### Title: k-Nearest Neighbour Classification of Mahalanobis Distance
    > ### Version
    > ### Aliases: knnMCN
    > ### Keywords: knn Mahalanobis
    >
    > ### ** Examples
    >
    > library(knnGarden)
    > data(iris)
    >
    > ## Define data
    > TrnX=iris[c(1:20,80:100,140:150),1:4]
    > OrigTrnG=iris[c(1:20,80:100,140:150),5]
    > #
    > TstX<-iris[c(1:20,50:70,120:140),1:4]
    > #or
    > TstX<-NULL
    > ## Call function
    > knnMCN(TrnX=TrnX,OrigTrnG=OrigTrnG,TstX=TstX,ShowObs=FALSE,K=5)
    Error in solve.default(cov(TrnX[which(TrnTotal[, 1] == ElmTrnG[1]), ]), :
     the LINPACK argument has been defunct since R 3.1.0
    Calls: knnMCN -> solve -> solve.default
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 1.0.1
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘stats’
     All declared Imports should be used.
    Package in Depends field not imported from: ‘cluster’
     These packages need to be imported from (in the NAMESPACE file)
     for when this namespace is loaded but not attached.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 1.0.1
Check: examples
Result: ERROR
    Running examples in ‘knnGarden-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: knnMCN
    > ### Title: k-Nearest Neighbour Classification of Mahalanobis Distance
    > ### Version
    > ### Aliases: knnMCN
    > ### Keywords: knn Mahalanobis
    >
    > ### ** Examples
    >
    > library(knnGarden)
    > data(iris)
    >
    > ## Define data
    > TrnX=iris[c(1:20,80:100,140:150),1:4]
    > OrigTrnG=iris[c(1:20,80:100,140:150),5]
    > #
    > TstX<-iris[c(1:20,50:70,120:140),1:4]
    > #or
    > TstX<-NULL
    > ## Call function
    > knnMCN(TrnX=TrnX,OrigTrnG=OrigTrnG,TstX=TstX,ShowObs=FALSE,K=5)
    Error in solve.default(cov(TrnX[which(TrnTotal[, 1] == ElmTrnG[1]), ]), :
     the LINPACK argument has been defunct since R 3.1.0
    Calls: knnMCN -> solve -> solve.default
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64