# checkmate

> Fast and versatile argument checks for R functions

Source: https://talira.ai/catalog/checkmate-tzgvy4td
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / validation / values](https://talira.ai/categories/libraries/validation/values), [languages / r](https://talira.ai/categories/languages/r)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Michel Lang](https://talira.ai/orgs/michel-lang.md)

checkmate is an R package of tests and assertions for checking the arguments passed to a function, so a wrong argument fails with an informative error message in one readable line. Much of it is written in C to keep the overhead low, and it adds over 30 expectations to [testthat](https://talira.ai/catalog/testthat-7gmdb2r0.md) for unit tests.

## Links

- Website: https://mllg.github.io/checkmate/
- GitHub: https://github.com/mllg/checkmate
- Docs: https://mllg.github.io/checkmate/

## Problems it solves

- validate the arguments of my R function with clear error messages
- assert argument types in an R package without slowing it down
- write testthat expectations for argument types

## Features

- check, test and assert functions for common argument types
- informative error messages
- core written in C for low overhead
- over 30 expectations for testthat

## Trust

Overall: 0.30 out of 1.
Signals: maintenance 0.27, adoption 0.50, momentum 0.14, community 0.50, backing 0.30, extensibility 0.00.

- latest release v2.3.4 9 months ago
- 308 GitHub stars
- 17 contributors
- backed by Michel Lang

Warnings:

- last commit 9 months ago

## Related

- Works with [testthat](https://talira.ai/catalog/testthat-7gmdb2r0.md)

## Sources

[^1]: https://github.com/mllg/checkmate/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/mllg/checkmate/blob/master/DESCRIPTION (checked 28 Nov 2026)
