Package: checkmate 2.3.2

checkmate: Fast and Versatile Argument Checks

Tests and assertions to perform frequent argument checks. A substantial part of the package was written in C to minimize any worries about execution time overhead.

Authors:Michel Lang [cre, aut], Bernd Bischl [ctb], Dénes Tóth [ctb]

checkmate_2.3.2.tar.gz
checkmate_2.3.2.zip(r-4.5)checkmate_2.3.2.zip(r-4.4)checkmate_2.3.2.zip(r-4.3)
checkmate_2.3.2.tgz(r-4.4-x86_64)checkmate_2.3.2.tgz(r-4.4-arm64)checkmate_2.3.2.tgz(r-4.3-x86_64)checkmate_2.3.2.tgz(r-4.3-arm64)
checkmate_2.3.2.tar.gz(r-4.5-noble)checkmate_2.3.2.tar.gz(r-4.4-noble)
checkmate_2.3.2.tgz(r-4.4-emscripten)checkmate_2.3.2.tgz(r-4.3-emscripten)
checkmate.pdf |checkmate.html
checkmate/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/mllg/checkmate/issues

On CRAN:

assertionstestthat

16.60 score 263 stars 1.8k packages 1.5k scripts 331k downloads 370 exports 1 dependencies

Last updated 4 months agofrom:63e001f009. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 27 2024
R-4.5-win-x86_64OKOct 27 2024
R-4.5-linux-x86_64OKOct 27 2024
R-4.4-win-x86_64OKOct 27 2024
R-4.4-mac-x86_64OKOct 27 2024
R-4.4-mac-aarch64OKOct 27 2024
R-4.3-win-x86_64OKOct 27 2024
R-4.3-mac-x86_64OKOct 27 2024
R-4.3-mac-aarch64OKOct 27 2024

Exports:%??%allMissinganyInfiniteanyMissinganyNaNasCountasIntasIntegerassertassert_accessassert_arrayassert_atomicassert_atomic_vectorassert_characterassert_choiceassert_classassert_complexassert_countassert_data_frameassert_data_tableassert_dateassert_directoryassert_directory_existsassert_disjunctassert_doubleassert_environmentassert_factorassert_falseassert_fileassert_file_existsassert_flagassert_formulaassert_functionassert_intassert_integerassert_integerishassert_listassert_logicalassert_matrixassert_multi_classassert_namedassert_namesassert_nullassert_numberassert_numericassert_osassert_path_for_outputassert_permutationassert_posixctassert_r6assert_rawassert_scalarassert_scalar_naassert_set_equalassert_stringassert_subsetassert_tibbleassert_trueassert_vectorassertAccessassertArrayassertAtomicassertAtomicVectorassertCharacterassertChoiceassertClassassertComplexassertCountassertDataFrameassertDataTableassertDateassertDirectoryassertDirectoryExistsassertDisjunctassertDoubleassertEnvironmentassertFactorassertFALSEassertFileassertFileExistsassertFlagassertFormulaassertFunctionassertIntassertIntegerassertIntegerishassertListassertLogicalassertMatrixassertMultiClassassertNamedassertNamesassertNullassertNumberassertNumericassertOSassertPathForOutputassertPermutationassertPOSIXctassertR6assertRawassertScalarassertScalarNAassertSetEqualassertStringassertSubsetassertTibbleassertTRUEassertVectorcheck_accesscheck_arraycheck_atomiccheck_atomic_vectorcheck_charactercheck_choicecheck_classcheck_complexcheck_countcheck_data_framecheck_data_tablecheck_datecheck_directory_existscheck_disjunctcheck_doublecheck_environmentcheck_factorcheck_falsecheck_file_existscheck_flagcheck_formulacheck_functioncheck_intcheck_integercheck_integerishcheck_listcheck_logicalcheck_matrixcheck_multi_classcheck_namedcheck_namescheck_nullcheck_numbercheck_numericcheck_oscheck_path_for_outputcheck_permutationcheck_posixctcheck_r6check_rawcheck_scalarcheck_scalar_nacheck_set_equalcheck_stringcheck_subsetcheck_tibblecheck_truecheck_vectorcheckAccesscheckArraycheckAtomiccheckAtomicVectorcheckCharactercheckChoicecheckClasscheckComplexcheckCountcheckDataFramecheckDataTablecheckDatecheckDirectorycheckDirectoryExistscheckDisjunctcheckDoublecheckEnvironmentcheckFactorcheckFALSEcheckFilecheckFileExistscheckFlagcheckFormulacheckFunctioncheckIntcheckIntegercheckIntegerishcheckListcheckLogicalcheckMatrixcheckMultiClasscheckNamedcheckNamescheckNullcheckNumbercheckNumericcheckOScheckPathForOutputcheckPermutationcheckPOSIXctcheckR6checkRawcheckScalarcheckScalarNAcheckSetEqualcheckStringcheckSubsetcheckTibblecheckTRUEcheckVectorexpect_accessexpect_arrayexpect_atomicexpect_atomic_vectorexpect_characterexpect_choiceexpect_classexpect_complexexpect_countexpect_data_frameexpect_data_tableexpect_dateexpect_directoryexpect_directory_existsexpect_disjunctexpect_doubleexpect_environmentexpect_factorexpect_fileexpect_file_existsexpect_flagexpect_formulaexpect_functionexpect_intexpect_integerexpect_integerishexpect_listexpect_logicalexpect_matrixexpect_multi_classexpect_namesexpect_numberexpect_numericexpect_osexpect_path_for_outputexpect_permutationexpect_posixctexpect_r6expect_rawexpect_scalarexpect_scalar_naexpect_set_equalexpect_stringexpect_subsetexpect_tibblemakeAssertCollectionmakeAssertionmakeAssertionFunctionmakeExpectationmakeExpectationFunctionmakeTestmakeTestFunctionmatchArgqassertqassertrqexpectqexpectrqtestqtestrregister_test_backendreportAssertionstest_accesstest_arraytest_atomictest_atomic_vectortest_charactertest_choicetest_classtest_complextest_counttest_data_frametest_data_tabletest_datetest_directorytest_directory_existstest_disjuncttest_doubletest_environmenttest_factortest_falsetest_file_existstest_flagtest_formulatest_functiontest_inttest_integertest_integerishtest_listtest_logicaltest_matrixtest_multi_classtest_namedtest_namestest_nulltest_numbertest_numerictest_ostest_path_for_outputtest_permutationtest_posixcttest_r6test_rawtest_scalartest_scalar_natest_set_equaltest_stringtest_subsettest_tibbletest_truetest_vectortestAccesstestArraytestAtomictestAtomicVectortestCharactertestChoicetestClasstestComplextestCounttestDataFrametestDataTabletestDatetestDirectorytestDirectoryExiststestDisjuncttestDoubletestEnvironmenttestFactortestFALSEtestFiletestFileExiststestFlagtestFormulatestFunctiontestInttestIntegertestIntegerishtestListtestLogicaltestMatrixtestMultiClasstestNamedtestNamestestNulltestNumbertestNumerictestOStestPathForOutputtestPermutationtestPOSIXcttestR6testRawtestScalartestScalarNAtestSetEqualtestStringtestSubsettestTibbletestTRUEtestVectorvnamewfwl

Dependencies:backports

Checkmate

Rendered fromcheckmate.Rmdusingknitr::rmarkdownon Oct 27 2024.

Last update: 2021-08-25
Started: 2015-06-09

Setup tinytest

Rendered fromtinytest.Rmdusingknitr::rmarkdownon Oct 27 2024.

Last update: 2020-06-06
Started: 2019-11-26

Readme and manuals

Help Manual

Help pageTopics
checkmate: Fast and Versatile Argument Checkscheckmate-package checkmate
Coalesce operator%??%
Check if an object contains missing valuesallMissing anyMissing
Check if an object contains infinite valuesanyInfinite
Check if an object contains NaN valuesanyNaN
Convert an argument to an integerasCount asInt asInteger
Combine multiple checks into one assertionassert
Collect multiple assertionsAssertCollection makeAssertCollection reportAssertions
Check file system access rightsassertAccess assert_access checkAccess check_access expect_access testAccess test_access
Check if an argument is an arrayassertArray assert_array checkArray check_array expect_array testArray test_array
Check that an argument is an atomic vectorassertAtomic assert_atomic checkAtomic check_atomic expect_atomic testAtomic test_atomic
Check that an argument is an atomic vectorassertAtomicVector assert_atomic_vector checkAtomicVector check_atomic_vector expect_atomic_vector testAtomicVector test_atomic_vector
Check if an argument is a vector of type characterassertCharacter assert_character checkCharacter check_character expect_character testCharacter test_character
Check if an object is an element of a given setassertChoice assert_choice checkChoice check_choice expect_choice testChoice test_choice
Check the class membership of an argumentassertClass assert_class checkClass check_class expect_class testClass test_class
Check if an argument is a vector of type complexassertComplex assert_complex checkComplex check_complex expect_complex testComplex test_complex
Check if an argument is a countassertCount assert_count checkCount check_count expect_count testCount test_count
Check if an argument is a data frameassertDataFrame assert_data_frame checkDataFrame check_data_frame expect_data_frame testDataFrame test_data_frame
Check if an argument is a data tableassertDataTable assert_data_table checkDataTable check_data_table expect_data_table testDataTable test_data_table
Check that an argument is a DateassertDate assert_date checkDate check_date expect_date testDate test_date
Check for existence and access rights of directoriesassertDirectory assertDirectoryExists assert_directory assert_directory_exists checkDirectory checkDirectoryExists check_directory_exists expect_directory expect_directory_exists testDirectory testDirectoryExists test_directory test_directory_exists
Check if an argument is disjunct from a given setassertDisjunct assert_disjunct checkDisjunct check_disjunct expect_disjunct testDisjunct test_disjunct
Check that an argument is a vector of type doubleassertDouble assert_double checkDouble check_double expect_double testDouble test_double
Check if an argument is an environmentassertEnvironment assert_environment checkEnvironment check_environment expect_environment testEnvironment test_environment
Check if an argument is a factorassertFactor assert_factor checkFactor check_factor expect_factor testFactor test_factor
Check if an argument is FALSEassertFALSE assert_false checkFALSE check_false testFALSE test_false
Check existence and access rights of filesassertFile assertFileExists assert_file assert_file_exists checkFile checkFileExists check_file_exists expect_file expect_file_exists testFile testFileExists test_file_exists
Check if an argument is a flagassertFlag assert_flag checkFlag check_flag expect_flag testFlag test_flag
Check if an argument is a formulaassertFormula assert_formula checkFormula check_formula expect_formula testFormula test_formula
Check if an argument is a functionassertFunction assert_function checkFunction check_function expect_function testFunction test_function
Check if an argument is a single integerish valueassertInt assert_int checkInt check_int expect_int testInt test_int
Check if an argument is vector of type integerassertInteger assert_integer checkInteger check_integer expect_integer testInteger test_integer
Check if an object is an integerish vectorassertIntegerish assert_integerish checkIntegerish check_integerish expect_integerish testIntegerish test_integerish
Check if an argument is a listassertList assert_list checkList check_list expect_list testList test_list
Check if an argument is a vector of type logicalassertLogical assert_logical checkLogical check_logical expect_logical testLogical test_logical
Check if an argument is a matrixassertMatrix assert_matrix checkMatrix check_matrix expect_matrix testMatrix test_matrix
Check the class membership of an argumentassertMultiClass assert_multi_class checkMultiClass check_multi_class expect_multi_class testMultiClass test_multi_class
Check if an argument is namedassertNamed assert_named checkNamed check_named testNamed test_named
Check names to comply to specific rulesassertNames assert_names checkNames check_names expect_names testNames test_names
Check if an argument is NULLassertNull assert_null checkNull check_null testNull test_null
Check if an argument is a single numeric valueassertNumber assert_number checkNumber check_number expect_number testNumber test_number
Check that an argument is a vector of type numericassertNumeric assert_numeric checkNumeric check_numeric expect_numeric testNumeric test_numeric
Check the operating systemassertOS assert_os checkOS check_os expect_os testOS test_os
Check if a path is suited for creating an output fileassertPathForOutput assert_path_for_output checkPathForOutput check_path_for_output expect_path_for_output testPathForOutput test_path_for_output
Check if the arguments are permutations of each other.assertPermutation assert_permutation checkPermutation check_permutation expect_permutation testPermutation test_permutation
Check that an argument is a date/time object in POSIXct formatassertPOSIXct assert_posixct checkPOSIXct check_posixct expect_posixct testPOSIXct test_posixct
Check if an argument is an R6 classassertR6 assert_r6 checkR6 check_r6 expect_r6 testR6 test_r6
Check if an argument is a raw vectorassertRaw assert_raw checkRaw check_raw expect_raw testRaw test_raw
Check if an argument is a single atomic valueassertScalar assert_scalar checkScalar check_scalar expect_scalar testScalar test_scalar
Check if an argument is a single missing valueassertScalarNA assert_scalar_na checkScalarNA check_scalar_na expect_scalar_na testScalarNA test_scalar_na
Check if an argument is equal to a given setassertSetEqual assert_set_equal checkSetEqual check_set_equal expect_set_equal testSetEqual test_set_equal
Check if an argument is a stringassertString assert_string checkString check_string expect_string testString test_string
Check if an argument is a subset of a given setassertSubset assert_subset checkSubset check_subset expect_subset testSubset test_subset
Check if an argument is a tibbleassertTibble assert_tibble checkTibble check_tibble expect_tibble testTibble test_tibble
Check if an argument is TRUEassertTRUE assert_true checkTRUE check_true testTRUE test_true
Check if an argument is a vectorassertVector assert_vector checkVector check_vector testVector test_vector
Turn a Check into an AssertionmakeAssertion makeAssertionFunction
Turn a Check into an ExpectationmakeExpectation makeExpectationFunction
Turn a Check into a TestmakeTest makeTestFunction
Partial Argument MatchingmatchArg
Quick argument checks on (builtin) R typesqassert qexpect qtest
Quick recursive arguments checks on lists and data framesqassertr qexpectr qtestr
Select Backend for Unit Testsregister_test_backend
Lookup a variable namevname
Get the index of the first/last TRUEwf wl