Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fastDummies)
  > 
  > test_check("fastDummies")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-columns-dimensions.R:24:3): dummy_cols returns same number of rows as inputted ──
  Error in `dummy_cols(no_dummies_needed, select_columns = "animals")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-columns-dimensions.R:24:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nrow(dummy_cols(no_dummies_needed, select_columns = "animals"))
   5. └─fastDummies::dummy_cols(no_dummies_needed, select_columns = "animals")
  ── Error (test-columns-dimensions.R:67:3): dummy_cols returns expected number of columns ──
  Error in `dummy_cols(no_dummies_needed, select_columns = "animals")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-columns-dimensions.R:67:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::ncol(dummy_cols(no_dummies_needed, select_columns = "animals"))
   5. └─fastDummies::dummy_cols(no_dummies_needed, select_columns = "animals")
  ── Error (test-columns-dimensions.R:119:3): returns expected number of columns - remove most common ──
  Error in `dummy_cols(no_dummies_needed, select_columns = "animals", remove_most_frequent_dummy = TRUE)`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-columns-dimensions.R:119:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::ncol(...)
   5. └─fastDummies::dummy_cols(...)
  ── Error (test-columns-dimensions.R:154:3): returns expected number of columns - remove selected columns ──
  Error in `dummy_cols(no_dummies_needed, select_columns = "animals", remove_selected_columns = TRUE)`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-columns-dimensions.R:154:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::ncol(...)
   5. └─fastDummies::dummy_cols(...)
  ── Failure (test-columns-split.R:20:3): split parameter works ──────────────────
  Names of dummy_cols(df, split = ";") ('.data.ID', '.data.pets', '.data.pets_cat', '.data.pets_dog', '.data.pets_mouse') don't match 'ID', 'pets', 'pets_cat', 'pets_dog', 'pets_mouse'
  ── Failure (test-columns-split.R:23:3): split parameter works ──────────────────
  dummy_cols(df, split = ";")$pets_dog not equal to c(1, 1, 1, 0).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:25:3): split parameter works ──────────────────
  dummy_cols(df, split = ";")$pets_cat not equal to c(0, 1, 0, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:27:3): split parameter works ──────────────────
  dummy_cols(df, split = ";")$pets_mouse not equal to c(0, 1, 1, 0).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:31:3): split parameter works ──────────────────
  Names of dummy_cols(split_test, split = ",") ('.data.Theory', '.data.Format', '.data.Theory_Behaviourism', '.data.Theory_Cognitive', '.data.Theory_Gestalt', '.data.Theory_Psychodynamic', '.data.Format_16mm', '.data.Format_35mm', '.data.Format_VHS') don't match 'Theory', 'Format', 'Theory_Behaviourism', 'Theory_Cognitive', 'Theory_Gestalt', 'Theory_Psychodynamic', 'Format_16mm', 'Format_35mm', 'Format_VHS'
  ── Failure (test-columns-split.R:41:3): split parameter works ──────────────────
  Names of dummy_cols(split_test, split = ", ") ('.data.Theory', '.data.Format', '.data.Theory_Behaviourism', '.data.Theory_Cognitive', '.data.Theory_Gestalt', '.data.Theory_Psychodynamic', '.data.Format_16mm', '.data.Format_35mm', '.data.Format_VHS') don't match 'Theory', 'Format', 'Theory_Behaviourism', 'Theory_Cognitive', 'Theory_Gestalt', 'Theory_Psychodynamic', 'Format_16mm', 'Format_35mm', 'Format_VHS'
  ── Failure (test-columns-split.R:52:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ",")$Theory_Behaviourism not equal to c(1, 1, 1, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:54:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ",")$Theory_Cognitive not equal to c(0, 1, 0, 0, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:56:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ",")$Theory_Gestalt not equal to c(0, 0, 1, 0, 0).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:58:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ",")$Theory_Psychodynamic not equal to c(0, 0, 0, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:60:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ",")$Format_16mm not equal to c(1, 1, 1, 1, 0).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:62:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ",")$Format_35mm not equal to c(0, 1, 1, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:64:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ",")$Format_VHS not equal to c(0, 0, 1, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:67:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ", ")$Theory_Behaviourism not equal to c(1, 1, 1, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:69:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ", ")$Theory_Cognitive not equal to c(0, 1, 0, 0, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:71:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ", ")$Theory_Gestalt not equal to c(0, 0, 1, 0, 0).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:73:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ", ")$Theory_Psychodynamic not equal to c(0, 0, 0, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:75:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ", ")$Format_16mm not equal to c(1, 1, 1, 1, 0).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:77:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ", ")$Format_35mm not equal to c(0, 1, 1, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-split.R:79:3): split parameter works ──────────────────
  dummy_cols(split_test, split = ", ")$Format_VHS not equal to c(0, 0, 1, 1, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-type.R:11:3): Original columns keep same type ─────────
  dummy_cols(fastDummies_example)$numbers inherits from `'NULL'` not `'character'`.
  ── Failure (test-columns-type.R:12:3): Original columns keep same type ─────────
  dummy_cols(fastDummies_example)$animals inherits from `'NULL'` not `'character'`.
  ── Failure (test-columns-type.R:13:3): Original columns keep same type ─────────
  dummy_cols(fastDummies_example_character)$animals inherits from `'NULL'` not `'character'`.
  ── Failure (test-columns-type.R:14:3): Original columns keep same type ─────────
  dummy_cols(fastDummies_example)$dates inherits from `'NULL'` not `'character'`.
  ── Failure (test-columns-type.R:15:3): Original columns keep same type ─────────
  dummy_cols(fastDummies_example, remove_first_dummy = TRUE)$numbers inherits from `'NULL'` not `'character'`.
  ── Failure (test-columns-type.R:17:3): Original columns keep same type ─────────
  dummy_cols(fastDummies_example, remove_first_dummy = TRUE)$animals inherits from `'NULL'` not `'character'`.
  ── Failure (test-columns-type.R:19:3): Original columns keep same type ─────────
  dummy_cols(fastDummies_example, remove_first_dummy = TRUE)$dates inherits from `'NULL'` not `'character'`.
  ── Failure (test-columns-type.R:27:3): New columns are integer ─────────────────
  dummy_cols(fastDummies_example)$gender_male inherits from `'NULL'` not `'character'`.
  ── Error (test-columns-type.R:28:3): New columns are integer ───────────────────
  Error in `dummy_cols(fastDummies_example, select_columns = "numbers")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_is(...) test-columns-type.R:28:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(fastDummies_example, select_columns = "numbers")
  ── Failure (test-columns-value-order.R:22:3): Order of dummy columns (e.g. 0,0,1,0) is right ──
  dummy_cols(fastDummies_example)$gender_female not equal to c(0, 0, 1).
  target is NULL, current is numeric
  ── Failure (test-columns-value-order.R:23:3): Order of dummy columns (e.g. 0,0,1,0) is right ──
  dummy_cols(fastDummies_example)$gender_male not equal to c(1, 1, 0).
  target is NULL, current is numeric
  ── Failure (test-columns-value-order.R:24:3): Order of dummy columns (e.g. 0,0,1,0) is right ──
  dummy_cols(fastDummies_example)$gender_female not equal to c(0, 0, 1).
  target is NULL, current is numeric
  ── Error (test-columns-value-order.R:25:3): Order of dummy columns (e.g. 0,0,1,0) is right ──
  Error in `dummy_cols(fastDummies_example, select_columns = "gender")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-columns-value-order.R:25:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(fastDummies_example, select_columns = "gender")
  ── Failure (test-columns-value-order.R:103:3): Order of non-dummy columns is same ──
  dummy_cols(fastDummies_example)$numbers not equal to fastDummies_example$numbers.
  target is NULL, current is numeric
  ── Failure (test-columns-value-order.R:105:3): Order of non-dummy columns is same ──
  dummy_cols(fastDummies_example, remove_first_dummy = TRUE)$numbers not equal to fastDummies_example$numbers.
  target is NULL, current is numeric
  ── Error (test-columns-value-order.R:108:3): Order of non-dummy columns is same ──
  Error in `dummy_cols(fastDummies_example, select_columns = "gender")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-columns-value-order.R:108:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(fastDummies_example, select_columns = "gender")
  ── Error (test-columns-warnings-errors.R:71:3): no errors or warnings ──────────
  Error in `dummy_cols(test, select_columns = "Theory", split = ", ")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_silent(...) test-columns-warnings-errors.R:71:2
   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3. │   ├─testthat:::.capture(...)
   4. │   │ ├─withr::with_output_sink(...)
   5. │   │ │ └─base::force(code)
   6. │   │ ├─base::withCallingHandlers(...)
   7. │   │ └─base::withVisible(code)
   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   9. └─fastDummies::dummy_cols(test, select_columns = "Theory", split = ", ")
  ── Failure (test-columns.R:45:3): The correct dummy columns are made - default ──
  Names of dummy_cols(sort_order_example) ('.data.numbers', '.data.month', '.data.month_February', '.data.month_January', '.data.month_March', '.data.month_July', '.data.month_June', '.data.month_May', '.data.month_April', '.data.month_August', '.data.month_October', '.data.month_September', '.data.month_December', '.data.month_November') don't match 'numbers', 'month', 'month_February', 'month_January', 'month_March', 'month_July', 'month_June', 'month_May', 'month_April', 'month_August', 'month_October', 'month_September', 'month_December', 'month_November'
  ── Failure (test-columns.R:71:3): The correct dummy columns are made - default ──
  Names of dummy_cols(sort_order_example2) ('.data.numbers', '.data.month', '.data.month_April', '.data.month_August', '.data.month_December', '.data.month_February', '.data.month_January', '.data.month_July', '.data.month_June', '.data.month_March', '.data.month_May', '.data.month_November', '.data.month_October', '.data.month_September') don't match 'numbers', 'month', 'month_April', 'month_August', 'month_December', 'month_February', 'month_January', 'month_July', 'month_June', 'month_March', 'month_May', 'month_November', 'month_October', 'month_September'
  ── Failure (test-columns.R:88:3): The correct dummy columns are made - default ──
  Names of dummy_cols(fastDummies_example) ('.data.numbers', '.data.gender', '.data.animals', '.data.dates', '.data.gender_female', '.data.gender_male', '.data.animals_cat', '.data.animals_dog') don't match 'numbers', 'gender', 'animals', 'dates', 'gender_female', 'gender_male', 'animals_cat', 'animals_dog'
  ── Failure (test-columns.R:97:3): The correct dummy columns are made - default ──
  Names of dummy_cols(fastDummies_example2) ('.data.numbers', '.data.gender', '.data.animals', '.data.dates', '.data.gender_female', '.data.gender_male', '.data.animals_cat', '.data.animals_dog') don't match 'numbers', 'gender', 'animals', 'dates', 'gender_female', 'gender_male', 'animals_cat', 'animals_dog'
  ── Error (test-columns.R:149:3): The correct dummy columns are made - select_columns ──
  Error in `dummy_cols(fastDummies_example, select_columns = "numbers")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_named(...) test-columns.R:149:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(fastDummies_example, select_columns = "numbers")
  ── Failure (test-columns.R:237:3): Remove first dummy leads to proper dummy columns being made ──
  Names of dummy_cols(fastDummies_example, remove_first_dummy = TRUE) ('.data.numbers', '.data.gender', '.data.animals', '.data.dates', '.data.gender_male', '.data.animals_dog') don't match 'numbers', 'gender', 'animals', 'dates', 'gender_male', 'animals_dog'
  ── Error (test-columns.R:244:3): Remove first dummy leads to proper dummy columns being made ──
  Error in `dummy_cols(fastDummies_example, select_columns = c("gender", 
      "animals"), remove_first_dummy = TRUE)`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_named(...) test-columns.R:244:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(...)
  ── Failure (test-columns.R:295:3): remove_most_frequent_dummy works ────────────
  Names of dummy_cols(most_frequent, remove_most_frequent_dummy = TRUE) ('.data.animal', '.data.day', '.data.hour', '.data.animal_cat', '.data.animal_dog', '.data.day_friday', '.data.day_monday', '.data.day_saturday', '.data.day_tuesday') don't match 'animal', 'day', 'hour', 'animal_cat', 'animal_dog', 'day_friday', 'day_monday', 'day_saturday', 'day_tuesday'
  ── Error (test-columns.R:305:3): remove_most_frequent_dummy works ──────────────
  Error in `dummy_cols(most_frequent, select_columns = c("animal", "day"), 
      remove_most_frequent_dummy = TRUE)`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_named(...) test-columns.R:305:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(...)
  ── Failure (test-columns.R:347:3): remove_selected_columns works ───────────────
  Names of dummy_cols(most_frequent, remove_selected_columns = TRUE) ('.data.hour', '.data.animal_cat', '.data.animal_dog', '.data.animal_gorilla', '.data.day_friday', '.data.day_monday', '.data.day_saturday', '.data.day_tuesday', '.data.day_wednesday') don't match 'hour', 'animal_cat', 'animal_dog', 'animal_gorilla', 'day_friday', 'day_monday', 'day_saturday', 'day_tuesday', 'day_wednesday'
  ── Error (test-columns.R:357:3): remove_selected_columns works ─────────────────
  Error in `dummy_cols(most_frequent, select_columns = c("animal", "day"), 
      remove_selected_columns = TRUE)`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_named(...) test-columns.R:357:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(...)
  ── Failure (test-ignore_na.R:22:3): ignore-na parameter works ──────────────────
  Names of dummy_cols(na_test) ('.data.numbers', '.data.animals', '.data.animals_cat', '.data.animals_dog', '.data.animals_NA') don't match 'numbers', 'animals', 'animals_cat', 'animals_dog', 'animals_NA'
  ── Failure (test-ignore_na.R:28:3): ignore-na parameter works ──────────────────
  Names of dummy_cols(na_test, ignore_na = TRUE) ('.data.numbers', '.data.animals', '.data.animals_cat', '.data.animals_dog') don't match 'numbers', 'animals', 'animals_cat', 'animals_dog'
  ── Error (test-ignore_na.R:35:3): ignore-na parameter works ────────────────────
  Error in `dummy_cols(most_frequent, select_columns = "animal")`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
      █
   1. ├─testthat::expect_named(...) test-ignore_na.R:35:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─fastDummies::dummy_cols(most_frequent, select_columns = "animal")
  ── Failure (test-return-type.R:7:3): tibble input returns tibble ───────────────
  dummy_cols(tibble::as_tibble(crime)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:8:3): tibble input returns tibble ───────────────
  dummy_cols(tibble::as_tibble(crime[, "city", drop = FALSE])) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:9:3): tibble input returns tibble ───────────────
  dummy_cols(tibble::as_tibble(crime[, "year", drop = FALSE])) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:10:3): tibble input returns tibble ──────────────
  dummy_cols(tibble::as_tibble(crime_full)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:11:3): tibble input returns tibble ──────────────
  dummy_cols(tibble::as_tibble(fastDummies_example)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:12:3): tibble input returns tibble ──────────────
  dummy_cols(tibble::as_tibble(fastDummies_full)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:13:3): tibble input returns tibble ──────────────
  dummy_cols(tibble::as_tibble(no_dummies_needed)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:41:3): data.table input returns data.table ──────
  dummy_cols(data.table::as.data.table(crime)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:42:3): data.table input returns data.table ──────
  dummy_cols(data.table::as.data.table(crime$city)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:43:3): data.table input returns data.table ──────
  dummy_cols(data.table::as.data.table(crime$year)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:44:3): data.table input returns data.table ──────
  dummy_cols(data.table::as.data.table(crime_full)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:45:3): data.table input returns data.table ──────
  dummy_cols(data.table::as.data.table(fastDummies_example)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:46:3): data.table input returns data.table ──────
  dummy_cols(data.table::as.data.table(fastDummies_full)) inherits from `'data.frame'` not `'character'`.
  ── Failure (test-return-type.R:47:3): data.table input returns data.table ──────
  dummy_cols(data.table::as.data.table(no_dummies_needed)) inherits from `'data.frame'` not `'character'`.
  
  [ FAIL 69 | WARN 0 | SKIP 0 | PASS 254 ]
  Error: Test failures
  Execution halted