R Under development (unstable) (2024-06-28 r86850 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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. > library(testthat) > library(tidyrules) > > test_check("tidyrules") ---- Rulelist -------------------------------- ▶ Keys: trial_nbr ▶ Number of distinct keys: 1 ▶ Number of rules: 24 ▶ Model type: C5 ▶ Estimation type: classification ▶ Is validation data set: TRUE rule_nbr trial_nbr LHS RHS support confidence lift 1 1 1 ( JobLevel <= 1 ) & ( Mont… Yes 16 0.944 5.9 2 2 1 ( EnvironmentSatisfaction … No 521 0.941 1.1 3 3 1 ( DailyRate <= 722 ) & ( J… Yes 13 0.933 5.8 4 4 1 ( JobRole == 'Research_Sci… No 195 0.924 1.1 5 5 1 ( EnvironmentSatisfaction … Yes 9 0.909 5.6 6 6 1 ( EnvironmentSatisfaction … Yes 9 0.909 5.6 7 7 1 ( JobRole %in% c('Laborato… Yes 14 0.875 5.4 8 8 1 ( JobRole == 'Laboratory_T… Yes 6 0.875 5.4 9 9 1 ( Department == 'Sales' ) … Yes 13 0.867 5.4 10 10 1 ( TotalWorkingYears > 2 ) No 1347 0.864 1 # ℹ 14 more rows -------------------------------------------------- Rulelist -------------------------------- ▶ Keys: trial_nbr ▶ Number of distinct keys: 1 ▶ Number of rules: 24 ▶ Model type: C5 ▶ Estimation type: classification ▶ Is validation data set: FALSE rule_nbr trial_nbr LHS RHS support confidence lift 1 1 1 ( JobLevel <= 1 ) & ( Mont… Yes 16 0.944 5.9 2 2 1 ( EnvironmentSatisfaction … No 521 0.941 1.1 3 3 1 ( DailyRate <= 722 ) & ( J… Yes 13 0.933 5.8 4 4 1 ( JobRole == 'Research_Sci… No 195 0.924 1.1 5 5 1 ( EnvironmentSatisfaction … Yes 9 0.909 5.6 6 6 1 ( EnvironmentSatisfaction … Yes 9 0.909 5.6 7 7 1 ( JobRole %in% c('Laborato… Yes 14 0.875 5.4 8 8 1 ( JobRole == 'Laboratory_T… Yes 6 0.875 5.4 9 9 1 ( Department == 'Sales' ) … Yes 13 0.867 5.4 10 10 1 ( TotalWorkingYears > 2 ) No 1347 0.864 1 # ℹ 14 more rows ----------------------------------------------[ FAIL 0 | WARN 1 | SKIP 0 | PASS 80 ] [ FAIL 0 | WARN 1 | SKIP 0 | PASS 80 ] > > proc.time() user system elapsed 24.17 1.17 25.51