SkillAgentSearch skills...

Checkmate

Fast and versatile argument checks

Install / Use

/learn @mllg/Checkmate
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

checkmate

CRAN_Status_Badge R build status Download Stats

Fast and versatile argument checks for R.

Ever used an R function that produced a not-very-helpful error message, just to discover after minutes of debugging that you simply passed a wrong argument?

Blaming the laziness of the package author for not doing such standard checks (in a dynamically typed language such as R) is at least partially unfair, as R makes theses types of checks cumbersome and annoying. Well, that's how it was in the past.

Enter checkmate.

Virtually every standard type of user error when passing arguments into function can be caught with a simple, readable line which produces an informative error message in case. A substantial part of the package was written in C to minimize any worries about execution time overhead. Furthermore, the package provides over 30 expectations to extend the popular testthat package for unit tests.

Installation

For the stable release, just install the latest version from CRAN:

install.packages("checkmate")

For the development version, use devtools:

devtools::install_github("mllg/checkmate")

Resources

Related Skills

View on GitHub
GitHub Stars297
CategoryDevelopment
Updated7d ago
Forks35

Languages

R

Security Score

85/100

Audited on Mar 24, 2026

No findings