- using R Under development (unstable) (2024-03-24 r86185 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'RandPro/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'RandPro' version '0.2.2'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'RandPro' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [4s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [4s] OK
- checking loading without being on the library search path ... [4s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [8s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking LazyData ... NOTE
'LazyData' is specified without a 'data' directory
- checking examples ... [4s] ERROR
Running examples in 'RandPro-Ex.R' failed
The error most likely occurred in:
> ### Name: classify
> ### Title: Classification Function
> ### Aliases: classify
> ### Keywords: classification confusion_matrix feature_extraction k-nn svm
>
> ### ** Examples
>
> # Load Library
> library(RandPro)
>
> #Load Iris Data
> data("iris")
>
> #Split the data into training set and test set of 75:25 ratio.
> set.seed(101)
> sample <- sample.int(n = nrow(iris), size = floor(.75*nrow(iris)), replace = FALSE)
> trainn <- iris[sample, ]
> testt <- iris[-sample,]
>
> #Extract the train label and test label
> trainl <- trainn$Species
> testl <- testt$Species
> typeof(trainl)
[1] "integer"
>
> #Remove the label from training set and test set
> trainn <- trainn[,1:4]
> testt <- testt[,1:4]
>
> #classify the Iris data with default K-NN Classifier.
> res <- classify(trainn,testt,trainl,testl)
Function uses default value 0.5 for epsilon
Function uses Gaussian Projection function
Function uses default K-NN classifier
- checking PDF version of manual ... [23s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR, 1 NOTE