Skip to content

assertthat

0.2.1

Easy Pre and Post Assertions

345packages depend
2.9Mdownloads / year
81.6%test coverage
13/13checks pass

Overview

About
Maintained by Hadley WickhamFirst published 2013-12-063 releasesCRAN page ↗

An extension to stopifnot() that makes it easy to declare the pre and post conditions that you code should satisfy, while also producing friendly error messages so that your users know what's gone wrong.

Install

Health

CRAN checks
13OK
Slowest check: 55 s · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.50
81.6%
Coverage · measured lines
88%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 397 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
91%
Return-value docs
9%
References docs
0%

Downloads

2.9M
CRAN downloads in the past year
Rank #251 · ~8K/day · ~242.7K/mo
Daily download trend is not available in this view yet.
161.1K30 days
560.3K90 days
2.9M1 year
Compare downloads with other packages →
Also on39.5K r2u138 autocran1.1M conda_forge343 c2d4u

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (1)
tools
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none

Code & Tests

Code Composition
R 941 (69%)Rd 415 (31%)
Code characteristics
Cyclomatic complexity
1.0 median / 4 max
Test cases
27 / 0.50 per code line

Test coverage

Line coverage

82%

Expression

85.1%

Tests / Examples

81.6% / 79% ex

Functions

58 24 exported

Complexity

1.4 avg / 4 max

Call network

58 nodes / 18 edges

Loading call graph…

Lowest coverage

58 functions
FunctionCycloCoverage
is_not10%
logical_is_not10%
path_is_not10%
check_result457%
get_message388%
see_if exp492%

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.1Latest
    2019-03-21 · current release · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 0.2.0
    2017-04-11 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 0.1
    2013-12-06
Show 1 earlier events
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2013-12-06
Total releases
3 / 13 yrs
License
GPL-3 OSI
Download size
12 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →