njtierney / naniar

Tidy data structures, summaries, and visualisations for missing data
http://naniar.njtierney.com/
Other
650 stars 54 forks source link

CRAN checks to resolve #260

Closed njtierney closed 1 year ago

njtierney commented 4 years ago

test_check("naniar") -- 1. Error: impute_median_all retains proper shadow values (@test-impute-median Input must contain shade column. See ?shade, ?shade and ?bind_shadow Backtrace:

  1. testthat::expect_equal(...)
  2. naniar::unbind_data(impute_median_all(aq_shadow))
  3. naniar:::test_if_any_shade(data)

-- 2. Error: impute_median_all retains proper shadow values (@test-impute-median Input must contain shade column. See ?shade, ?shade and ?bind_shadow Backtrace:

  1. testthat::expect_equal(...)
  2. naniar::unbind_data(impute_median_all(aq_shadow))
  3. naniar:::test_if_any_shade(data)

    -- 3. Error: impute_median_all retains proper shadow values (@test-impute-median Input must contain shade column. See ?shade, ?shade and ?bind_shadow Backtrace:

  4. testthat::expect_equal(...)
  5. naniar::unbind_data(impute_median_all(aq_shadow))
  6. naniar:::test_if_any_shade(data)

    -- 4. Error: impute_median_all retains proper shadow values (@test-impute-median Input must contain shade column. See ?shade, ?shade and ?bind_shadow Backtrace:

  7. testthat::expect_equal(...)
  8. naniar::unbind_data(impute_median_all(aq_shadow))
  9. naniar:::test_if_any_shade(data)

    -- 5. Error: impute_mean_all retains proper shadow values (@test-impute_mean.R#9 Input must contain shade column. See ?shade, ?shade and ?bind_shadow Backtrace:

  10. testthat::expect_equal(...)
  11. naniar::unbind_data(impute_mean_all(aq_shadow))
  12. naniar:::test_if_any_shade(data)

    -- 6. Error: impute_mean_all retains proper shadow values (@test-impute_mean.R#1 Input must contain shade column. See ?shade, ?shade and ?bind_shadow Backtrace:

  13. testthat::expect_equal(...)
  14. naniar::unbind_data(impute_mean_all(aq_shadow))
  15. naniar:::test_if_any_shade(data)

    -- 7. Failure: special missings levels are updated for many recodes (@test-speci levels(df_many_recode$temp_NA) not equal to new_shade_levels. Lengths differ: 3 is not 4

    == testthat results =========================================================== [ OK: 562 | SKIPPED: 22 | WARNINGS: 0 | FAILED: 7 ]

    1. Error: impute_median_all retains proper shadow values (@test-impute-median.R#87)
    2. Error: impute_median_all retains proper shadow values (@test-impute-median.R#92)
    3. Error: impute_median_all retains proper shadow values (@test-impute-median.R#102)
    4. Error: impute_median_all retains proper shadow values (@test-impute-median.R#107)
    5. Error: impute_mean_all retains proper shadow values (@test-impute_mean.R#98)
    6. Error: impute_mean_all retains proper shadow values (@test-impute_mean.R#103)
    7. Failure: special missings levels are updated for many recodes (@test-special-missing-values.R#45)

    Error: testthat unit tests failed Execution halted

njtierney commented 4 years ago

Appears to be related to linux issues:

Version: 0.5.2
Check: tests
Result: ERROR
     Running 'spelling.R' [0s/1s]
     Running 'testthat.R' [16s/17s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(naniar)
     >
     > test_check("naniar")
     -- 1. Failure: special missings are the same for grouped and ungrouped data (@te
     aq_grouped_recoded$Ozone_NA not equal to aq_recoded$Ozone_NA.
     Attributes: < Component "class": Lengths (1, 2) differ (string compare on first 1) >
     Attributes: < Component "class": 1 string mismatch >

     == testthat results ===========================================================
     [ OK: 556 | SKIPPED: 32 | WARNINGS: 0 | FAILED: 1 ]
     1. Failure: special missings are the same for grouped and ungrouped data (@test-special-missing-values.R#139)

     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5.2
Check: tests
Result: ERROR
     Running ‘spelling.R’ [0s/1s]
     Running ‘testthat.R’ [12s/15s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(naniar)
     >
     > test_check("naniar")
     ── 1. Failure: special missings are the same for grouped and ungrouped data (@te
     aq_grouped_recoded$Ozone_NA not equal to aq_recoded$Ozone_NA.
     Attributes: < Component "class": Lengths (1, 2) differ (string compare on first 1) >
     Attributes: < Component "class": 1 string mismatch >

     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 556 | SKIPPED: 32 | WARNINGS: 0 | FAILED: 1 ]
     1. Failure: special missings are the same for grouped and ungrouped data (@test-special-missing-values.R#139)