Package: testdat 0.4.2.9000

Danny Smith

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:Danny Smith [aut, cre], Kinto Behr [aut], The Social Research Centre [cph]

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'))

Peer review:

Bug tracker:https://github.com/socialresearchcentre/testdat/issues

On CRAN:

5.72 score 7 stars 50 scripts 184 downloads 72 exports 36 dependencies

Last updated 6 months agofrom:a725e2d9ea. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 03 2024
R-4.5-winNOTENov 03 2024
R-4.5-linuxNOTENov 03 2024
R-4.4-winOKNov 03 2024
R-4.4-macOKNov 03 2024
R-4.3-winOKNov 03 2024
R-4.3-macOKNov 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:briocallrclicrayondescdiffobjdigestdplyrevaluatefansifsgenericsgluejsonlitelifecyclemagrittrpillarpkgbuildpkgconfigpkgloadpraiseprocessxpsR6rematch2rlangrprojrootstringistringrtestthattibbletidyselectutf8vctrswaldowithr

Introduction to testdat

Rendered fromtestdat.Rmdusingknitr::rmarkdownon Nov 03 2024.

Last update: 2022-08-25
Started: 2018-02-23

Readme and manuals

Help Manual

Help pageTopics
Checks: dateschk-dates chk_date_yyyy chk_date_yyyymm chk_date_yyyymmdd
Checks: dummychk-dummy chk_dummy
Checks: data frame helperschk-helper chk_filter chk_filter_all chk_filter_any
Checks: labelschk-labels chk_labels
Checks: patternschk-patterns chk_max_length chk_regex
Checks: textchk-text chk_ascii chk_text_miss chk_text_nmiss
Checks: uniquenesschk-uniqueness chk_unique
Checks: valueschk-values chk_blank chk_equals chk_range chk_values
Expectations: consistencyconditional-expectations expect_base expect_cond
Expectations: comparisonsdatacomp-expectations expect_subset expect_valmatch
Expectations: datesdate-expectations expect_date_yyyy expect_date_yyyymm expect_date_yyyymmdd
Expectations: exclusivityexclusivity-expectations expect_exclusive
Expectations: functional dependencyexpect_depends
Create an expectation from a check functionexpect_make
Expectations: generic helpersexpect_all expect_any generic-expectations
Get/set test data%E>% get_testdata global-data set_testdata with_testdata
Expectations: labelsexpect_labels label-expectations
Output 'ListReporter' results in Excel formatoutput_results_excel
Expectations: patternsexpect_max_length expect_regex pattern-expectations
Expectations: proportionsexpect_prop_gte expect_prop_lte expect_prop_nmiss expect_prop_values proportion-expectations
Expectations: textexpect_text_miss expect_text_nmiss text-expectations
Expectations: uniquenessexpect_unique expect_unique_across expect_unique_combine uniqueness-expectations
Expectations: valuesexpect_range expect_values value-expectations