R Under development (unstable) (2025-05-04 r88189 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(easyClassify) Warning message: replacing previous import 'ggplot2::margin' by 'randomForest::margin' when loading 'easyClassify' > > test_check("easyClassify") [1] "Train Data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Species 14 4.3 3.0 1.1 0.1 setosa 50 5.0 3.3 1.4 0.2 setosa 118 7.7 3.8 6.7 2.2 virginica 43 4.4 3.2 1.3 0.2 setosa 150 5.9 3.0 5.1 1.8 virginica 148 6.5 3.0 5.2 2.0 virginica [1] "Test Data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Species 1 5.1 3.5 1.4 0.2 setosa 2 4.9 3.0 1.4 0.2 setosa 3 4.7 3.2 1.3 0.2 setosa 11 5.4 3.7 1.5 0.2 setosa 18 5.1 3.5 1.4 0.3 setosa 19 5.7 3.8 1.7 0.3 setosa Removing rows with NA values. Removing outliers using IQR method. [1] "Previewing data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Species 14 4.3 3.0 1.1 0.1 setosa 50 5.0 3.3 1.4 0.2 setosa 118 7.7 3.8 6.7 2.2 virginica 43 4.4 3.2 1.3 0.2 setosa 150 5.9 3.0 5.1 1.8 virginica 148 6.5 3.0 5.2 2.0 virginica [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Species Min. :4.300 Min. :2.200 Min. :1.00 Min. :0.100 setosa :40 1st Qu.:5.100 1st Qu.:2.800 1st Qu.:1.60 1st Qu.:0.300 versicolor:35 Median :5.800 Median :3.000 Median :4.45 Median :1.400 virginica :45 Mean :5.852 Mean :3.059 Mean :3.81 Mean :1.228 3rd Qu.:6.400 3rd Qu.:3.400 3rd Qu.:5.10 3rd Qu.:1.800 Max. :7.900 Max. :4.400 Max. :6.90 Max. :2.500 Attaching package: 'kernlab' The following object is masked from 'package:ggplot2': alpha Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Removing outliers using IQR method. [1] "Summary of data:" Sepal.Length Sepal.Width Petal.Length Petal.Width Min. :-1.86652 Min. :-2.1124 Min. :-1.5966 Min. :-1.4756 1st Qu.:-0.90739 1st Qu.:-0.6043 1st Qu.:-1.2553 1st Qu.:-1.2122 Median :-0.06816 Median :-0.1016 Median : 0.3374 Median : 0.1046 Mean : 0.00000 Mean : 0.0000 Mean : 0.0000 Mean : 0.0000 3rd Qu.: 0.65119 3rd Qu.: 0.6525 3rd Qu.: 0.7356 3rd Qu.: 0.7630 Max. : 2.44955 Max. : 2.4119 Max. : 1.7594 Max. : 1.6848 Species setosa :47 versicolor:49 virginica :50 Best Model: logistic Best Model Error: 0.07586207 randomForest 4.7-1.2 Type rfNews() to see new features/changes/bug fixes. Attaching package: 'randomForest' The following object is masked from 'package:ggplot2': margin [ FAIL 0 | WARN 0 | SKIP 1 | PASS 77 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • empty test (1): 'test_error.R:11:1' [ FAIL 0 | WARN 0 | SKIP 1 | PASS 77 ] > > proc.time() user system elapsed 5.40 0.60 6.01