Package: testdat 0.4.2.9000
testdat: Data Unit Testing for R
Test your data! An extension of the 'testthat' unit testing framework with a family of functions and reporting tools for checking and validating data frames.
Authors:
testdat_0.4.2.9000.tar.gz
testdat_0.4.2.9000.zip(r-4.5)testdat_0.4.2.9000.zip(r-4.4)testdat_0.4.2.9000.zip(r-4.3)
testdat_0.4.2.9000.tgz(r-4.4-any)testdat_0.4.2.9000.tgz(r-4.3-any)
testdat_0.4.2.9000.tar.gz(r-4.5-noble)testdat_0.4.2.9000.tar.gz(r-4.4-noble)
testdat_0.4.2.9000.tgz(r-4.4-emscripten)testdat_0.4.2.9000.tgz(r-4.3-emscripten)
testdat.pdf |testdat.html✨
testdat/json (API)
NEWS
# Install 'testdat' in R: |
install.packages('testdat', repos = c('https://socialresearchcentre.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/socialresearchcentre/testdat/issues
Pkgdown:https://socialresearchcentre.github.io
Last updated 7 months agofrom:a725e2d9ea. Checks:OK: 5 NOTE: 2. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 03 2024 |
R-4.5-win | NOTE | Dec 03 2024 |
R-4.5-linux | NOTE | Dec 03 2024 |
R-4.4-win | OK | Dec 03 2024 |
R-4.4-mac | OK | Dec 03 2024 |
R-4.3-win | OK | Dec 03 2024 |
R-4.3-mac | OK | Dec 03 2024 |
Exports:%E>%all_ofany_ofchk_asciichk_blankchk_date_yyyychk_date_yyyymmchk_date_yyyymmddchk_dummychk_equalschk_filterchk_filter_allchk_filter_anychk_filter_varschk_filter_wherechk_labelschk_lengthchk_max_lengthchk_misschk_nmisschk_rangechk_regexchk_text_misschk_text_nmisschk_uniquechk_valuescontainscontext_dataends_witheverythingexpect_allexpect_allanyexpect_anyexpect_baseexpect_condexpect_customexpect_date_yyyyexpect_date_yyyymmexpect_date_yyyymmddexpect_dependsexpect_exclusiveexpect_funcexpect_joinexpect_labelsexpect_makeexpect_max_lengthexpect_prop_gteexpect_prop_lteexpect_prop_nmissexpect_prop_valuesexpect_rangeexpect_regexexpect_similarexpect_subsetexpect_text_missexpect_text_nmissexpect_uniqueexpect_unique_acrossexpect_unique_combineexpect_valmatchexpect_valuesexpect_wherefilter_expectget_testdatalast_colmatchesnum_rangeone_ofoutput_results_excelset_testdatastarts_withwith_testdata
Dependencies:briocallrclicrayondescdiffobjdigestdplyrevaluatefansifsgenericsgluejsonlitelifecyclemagrittrpillarpkgbuildpkgconfigpkgloadpraiseprocessxpsR6rlangrprojrootstringistringrtestthattibbletidyselectutf8vctrswaldowithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Checks: dates | chk-dates chk_date_yyyy chk_date_yyyymm chk_date_yyyymmdd |
Checks: dummy | chk-dummy chk_dummy |
Checks: data frame helpers | chk-helper chk_filter chk_filter_all chk_filter_any |
Checks: labels | chk-labels chk_labels |
Checks: patterns | chk-patterns chk_max_length chk_regex |
Checks: text | chk-text chk_ascii chk_text_miss chk_text_nmiss |
Checks: uniqueness | chk-uniqueness chk_unique |
Checks: values | chk-values chk_blank chk_equals chk_range chk_values |
Expectations: consistency | conditional-expectations expect_base expect_cond |
Expectations: comparisons | datacomp-expectations expect_subset expect_valmatch |
Expectations: dates | date-expectations expect_date_yyyy expect_date_yyyymm expect_date_yyyymmdd |
Expectations: exclusivity | exclusivity-expectations expect_exclusive |
Expectations: functional dependency | expect_depends |
Create an expectation from a check function | expect_make |
Expectations: generic helpers | expect_all expect_any generic-expectations |
Get/set test data | %E>% get_testdata global-data set_testdata with_testdata |
Expectations: labels | expect_labels label-expectations |
Output 'ListReporter' results in Excel format | output_results_excel |
Expectations: patterns | expect_max_length expect_regex pattern-expectations |
Expectations: proportions | expect_prop_gte expect_prop_lte expect_prop_nmiss expect_prop_values proportion-expectations |
Expectations: text | expect_text_miss expect_text_nmiss text-expectations |
Expectations: uniqueness | expect_unique expect_unique_across expect_unique_combine uniqueness-expectations |
Expectations: values | expect_range expect_values value-expectations |