Package: testdat 0.4.4.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.4.9000.tar.gz
testdat_0.4.4.9000.zip(r-4.7)testdat_0.4.4.9000.zip(r-4.6)testdat_0.4.4.9000.zip(r-4.5)
testdat_0.4.4.9000.tgz(r-4.6-any)testdat_0.4.4.9000.tgz(r-4.5-any)
testdat_0.4.4.9000.tar.gz(r-4.7-any)testdat_0.4.4.9000.tar.gz(r-4.6-any)
testdat_0.4.4.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
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/docs site:https://socialresearchcentre.github.io

On CRAN:

Conda:

6.23 score 11 stars 52 scripts 226 downloads 72 exports 33 dependencies

Last updated from:b48ff06379. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK142
source / vignettesOK186
linux-release-x86_64OK145
macos-release-arm64OK157
macos-oldrel-arm64OK316
windows-develOK100
windows-releaseOK88
windows-oldrelOK93
wasm-releaseOK104

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:briocallrclicrayondescdiffobjdplyrevaluatefsgenericsgluejsonlitelifecyclemagrittrpillarpkgbuildpkgconfigpkgloadpraiseprocessxpsR6rlangrprojrootstringistringrtestthattibbletidyselectutf8vctrswaldowithr

Introduction to testdat

Rendered fromtestdat.Rmdusingknitr::rmarkdownon May 21 2026.

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