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:
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')) |
Bug tracker:https://github.com/mllg/checkmate/issues
Last updated 4 months agofrom:63e001f009. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 27 2024 |
R-4.5-win-x86_64 | OK | Oct 27 2024 |
R-4.5-linux-x86_64 | OK | Oct 27 2024 |
R-4.4-win-x86_64 | OK | Oct 27 2024 |
R-4.4-mac-x86_64 | OK | Oct 27 2024 |
R-4.4-mac-aarch64 | OK | Oct 27 2024 |
R-4.3-win-x86_64 | OK | Oct 27 2024 |
R-4.3-mac-x86_64 | OK | Oct 27 2024 |
R-4.3-mac-aarch64 | OK | Oct 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
Readme and manuals
Help Manual
Help page | Topics |
---|---|
checkmate: Fast and Versatile Argument Checks | checkmate-package checkmate |
Coalesce operator | %??% |
Check if an object contains missing values | allMissing anyMissing |
Check if an object contains infinite values | anyInfinite |
Check if an object contains NaN values | anyNaN |
Convert an argument to an integer | asCount asInt asInteger |
Combine multiple checks into one assertion | assert |
Collect multiple assertions | AssertCollection makeAssertCollection reportAssertions |
Check file system access rights | assertAccess assert_access checkAccess check_access expect_access testAccess test_access |
Check if an argument is an array | assertArray assert_array checkArray check_array expect_array testArray test_array |
Check that an argument is an atomic vector | assertAtomic assert_atomic checkAtomic check_atomic expect_atomic testAtomic test_atomic |
Check that an argument is an atomic vector | assertAtomicVector assert_atomic_vector checkAtomicVector check_atomic_vector expect_atomic_vector testAtomicVector test_atomic_vector |
Check if an argument is a vector of type character | assertCharacter assert_character checkCharacter check_character expect_character testCharacter test_character |
Check if an object is an element of a given set | assertChoice assert_choice checkChoice check_choice expect_choice testChoice test_choice |
Check the class membership of an argument | assertClass assert_class checkClass check_class expect_class testClass test_class |
Check if an argument is a vector of type complex | assertComplex assert_complex checkComplex check_complex expect_complex testComplex test_complex |
Check if an argument is a count | assertCount assert_count checkCount check_count expect_count testCount test_count |
Check if an argument is a data frame | assertDataFrame assert_data_frame checkDataFrame check_data_frame expect_data_frame testDataFrame test_data_frame |
Check if an argument is a data table | assertDataTable assert_data_table checkDataTable check_data_table expect_data_table testDataTable test_data_table |
Check that an argument is a Date | assertDate assert_date checkDate check_date expect_date testDate test_date |
Check for existence and access rights of directories | assertDirectory 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 set | assertDisjunct assert_disjunct checkDisjunct check_disjunct expect_disjunct testDisjunct test_disjunct |
Check that an argument is a vector of type double | assertDouble assert_double checkDouble check_double expect_double testDouble test_double |
Check if an argument is an environment | assertEnvironment assert_environment checkEnvironment check_environment expect_environment testEnvironment test_environment |
Check if an argument is a factor | assertFactor assert_factor checkFactor check_factor expect_factor testFactor test_factor |
Check if an argument is FALSE | assertFALSE assert_false checkFALSE check_false testFALSE test_false |
Check existence and access rights of files | assertFile 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 flag | assertFlag assert_flag checkFlag check_flag expect_flag testFlag test_flag |
Check if an argument is a formula | assertFormula assert_formula checkFormula check_formula expect_formula testFormula test_formula |
Check if an argument is a function | assertFunction assert_function checkFunction check_function expect_function testFunction test_function |
Check if an argument is a single integerish value | assertInt assert_int checkInt check_int expect_int testInt test_int |
Check if an argument is vector of type integer | assertInteger assert_integer checkInteger check_integer expect_integer testInteger test_integer |
Check if an object is an integerish vector | assertIntegerish assert_integerish checkIntegerish check_integerish expect_integerish testIntegerish test_integerish |
Check if an argument is a list | assertList assert_list checkList check_list expect_list testList test_list |
Check if an argument is a vector of type logical | assertLogical assert_logical checkLogical check_logical expect_logical testLogical test_logical |
Check if an argument is a matrix | assertMatrix assert_matrix checkMatrix check_matrix expect_matrix testMatrix test_matrix |
Check the class membership of an argument | assertMultiClass assert_multi_class checkMultiClass check_multi_class expect_multi_class testMultiClass test_multi_class |
Check if an argument is named | assertNamed assert_named checkNamed check_named testNamed test_named |
Check names to comply to specific rules | assertNames assert_names checkNames check_names expect_names testNames test_names |
Check if an argument is NULL | assertNull assert_null checkNull check_null testNull test_null |
Check if an argument is a single numeric value | assertNumber assert_number checkNumber check_number expect_number testNumber test_number |
Check that an argument is a vector of type numeric | assertNumeric assert_numeric checkNumeric check_numeric expect_numeric testNumeric test_numeric |
Check the operating system | assertOS assert_os checkOS check_os expect_os testOS test_os |
Check if a path is suited for creating an output file | assertPathForOutput 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 format | assertPOSIXct assert_posixct checkPOSIXct check_posixct expect_posixct testPOSIXct test_posixct |
Check if an argument is an R6 class | assertR6 assert_r6 checkR6 check_r6 expect_r6 testR6 test_r6 |
Check if an argument is a raw vector | assertRaw assert_raw checkRaw check_raw expect_raw testRaw test_raw |
Check if an argument is a single atomic value | assertScalar assert_scalar checkScalar check_scalar expect_scalar testScalar test_scalar |
Check if an argument is a single missing value | assertScalarNA assert_scalar_na checkScalarNA check_scalar_na expect_scalar_na testScalarNA test_scalar_na |
Check if an argument is equal to a given set | assertSetEqual assert_set_equal checkSetEqual check_set_equal expect_set_equal testSetEqual test_set_equal |
Check if an argument is a string | assertString assert_string checkString check_string expect_string testString test_string |
Check if an argument is a subset of a given set | assertSubset assert_subset checkSubset check_subset expect_subset testSubset test_subset |
Check if an argument is a tibble | assertTibble assert_tibble checkTibble check_tibble expect_tibble testTibble test_tibble |
Check if an argument is TRUE | assertTRUE assert_true checkTRUE check_true testTRUE test_true |
Check if an argument is a vector | assertVector assert_vector checkVector check_vector testVector test_vector |
Turn a Check into an Assertion | makeAssertion makeAssertionFunction |
Turn a Check into an Expectation | makeExpectation makeExpectationFunction |
Turn a Check into a Test | makeTest makeTestFunction |
Partial Argument Matching | matchArg |
Quick argument checks on (builtin) R types | qassert qexpect qtest |
Quick recursive arguments checks on lists and data frames | qassertr qexpectr qtestr |
Select Backend for Unit Tests | register_test_backend |
Lookup a variable name | vname |
Get the index of the first/last TRUE | wf wl |