Package: testmaker 0.0.0.9000

Collin Edwards

testmaker: Facilitate writing testthat tests and parameter checks for data frames

Based on a template dataframe, generates R code for `testthat` tests or `stopifnot` checks. Intended to streamline testwriting rather than completely automate it; user will need to review the generated code and decide which comparisons make sense.

Authors:Collin Edwards [aut, cre]

testmaker_0.0.0.9000.tar.gz
testmaker_0.0.0.9000.zip(r-4.5)testmaker_0.0.0.9000.zip(r-4.4)testmaker_0.0.0.9000.zip(r-4.3)
testmaker_0.0.0.9000.tgz(r-4.4-any)testmaker_0.0.0.9000.tgz(r-4.3-any)
testmaker_0.0.0.9000.tar.gz(r-4.5-noble)testmaker_0.0.0.9000.tar.gz(r-4.4-noble)
testmaker_0.0.0.9000.tgz(r-4.4-emscripten)testmaker_0.0.0.9000.tgz(r-4.3-emscripten)
testmaker.pdf |testmaker.html
testmaker/json (API)

# Install 'testmaker' in R:
install.packages('testmaker', repos = c('https://framverse.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/framverse/testmaker/issues

On CRAN:

2.30 score 4 scripts 11 exports 4 dependencies

Last updated 1 months agofrom:00c82b02c9. Checks:1 OK, 6 WARNING. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 05 2025
R-4.5-winWARNINGJan 05 2025
R-4.5-linuxWARNINGJan 05 2025
R-4.4-winWARNINGJan 05 2025
R-4.4-macWARNINGJan 05 2025
R-4.3-winWARNINGJan 05 2025
R-4.3-macWARNINGJan 05 2025

Exports:testmaker_df_class_clitestmaker_df_class_tttestmaker_df_clitestmaker_df_colcontent_tttestmaker_df_dim_clitestmaker_df_dim_tttestmaker_df_isit_tttestmaker_df_names_sintestmaker_df_names_tttestmaker_df_tttestmaker_df_validator

Dependencies:clicliprgluerlang

Readme and manuals

Help Manual

Help pageTopics
Helper function to convert string to R code to regenerate that string.dput_to_string
Handle the standardized return options for all stopifnotmaker and testmaker functionsfinish_testmaker
Generate 'cli_abort' code for dataframe column classestestmaker_df_class_cli
*DEPRECATED* Generate 'stopifnot' code for dataframe column classestestmaker_df_class_sin
Generate testthat code for dataframe column classestestmaker_df_class_tt
Workhorse function to generate 'cli_abort' tests for dataframe inputstestmaker_df_cli
*DEPRECATED* Generate 'stopifnot' code to check contents of column(s) against templatetestmaker_df_colcontent_sin
Generate 'testthat' code to check contents of column(s) against templatetestmaker_df_colcontent_tt
Generate 'cli_abort' code for dataframe dimensionstestmaker_df_dim_cli
*Deprecated* Generate 'stopifnot' code for dataframe dimensionstestmaker_df_dim_sin
Generate 'testthat' code for dataframe dimensionstestmaker_df_dim_tt
Generate 'testthat' code for dataframe dimensionstestmaker_df_isit_tt
Generate 'stopifnot' code for dataframe column namestestmaker_df_names_sin
*DEPRECATED* Generate 'stopifnot' code for dataframe column names disregarding ordertestmaker_df_names_sin_orderless
Generate 'testthat' code for dataframe column namestestmaker_df_names_tt
*Deprecated* Workhorse function to generate 'stopifnot' tests for dataframe inputstestmaker_df_sin
Workhorse function to generate 'testthat' tests for dataframe inputstestmaker_df_tt
Generate code for input-checking function based on 'cli_abort' frameworktestmaker_df_validator
Validation function for testmaker functionsvalidate_testmaker