Skip to content

assertthat

0.2.1Package record

Easy Pre and Post Assertions

353packages dependsuggested by 7
2.7Mdownloads / year
81.6%test coverage
13/13flavors OK

Overview

About

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: 54 s · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.1
READMEYes · 397 wordsVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
Help pages
11
Examples that run
100%11 run in a plain check
Exported functions with examples
100%
Documented parameters
91%
Return-value docs
9%
Help pages citing references
0%

Downloads

2.7M
CRAN downloads in the past year
Rank #249 · ~7.4K/day · ~223.6K/mo
Daily download trend is not available in this view yet.
174K30 days
513.7K90 days
2.7M1 year
Compare downloads with other packages →
Also on46.5K r2u149 autocran1.5M conda_forge506 c2d4u

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing assertthat adds no packages beyond those that come with R.

Depends (0)
none
Imports (1)
tools
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none

People & History

People (1)
Author, Maintainer

Maintainer since 0.1 (2013)

Releases (3)

Pick two releases to compare their code metrics.

  • 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
    record
    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
    record
    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
    record
    2013-12-06
Show 1 earlier eventHide 1 earlier event
  • 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

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("assertthat")
Wickham, H. (2019). assertthat: Easy Pre and Post Assertions (Version 0.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.assertthat

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for assertthat version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy