Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fast and versatile argument checks

License

NotificationsYou must be signed in to change notification settings

mllg/checkmate

Repository files navigation

CRAN_Status_BadgeR build statusCoverage StatusDownload 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 checkscumbersome and annoying. Well, that's how it was in the past.

Enter checkmate.

Virtuallyevery standard type of user error when passing arguments into function can becaught with a simple, readable line which produces aninformative error message in case.A substantial part of the package was written in C tominimize any worries about execution time overhead.Furthermore, the package provides over 30 expectations to extend the populartestthat package for unit tests.

Installation

For the stable release, just install the latest version fromCRAN:

install.packages("checkmate")

For the development version, usedevtools:

devtools::install_github("mllg/checkmate")

Resources

About

Fast and versatile argument checks

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors16


[8]ページ先頭

©2009-2025 Movatter.jp