Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rorynolan/exampletestr

An R package for help with writing unit tests based on examples in documentation. Slightly similar to python's doctests.
https://github.com/rorynolan/exampletestr

Last synced: about 2 months ago
JSON representation

An R package for help with writing unit tests based on examples in documentation. Slightly similar to python's doctests.

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r knitr setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, comment = "#>")
```

# `exampletestr`

An R package to help developers create unit tests (designed for use with the `testthat` package) for their package, based on the examples in their package documentation.

[![R-CMD-check](https://github.com/rorynolan/exampletestr/workflows/R-CMD-check/badge.svg)](https://github.com/rorynolan/exampletestr/actions)

![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)
[![lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)

[![CRAN status](https://www.r-pkg.org/badges/version/exampletestr)](https://cran.r-project.org/package=exampletestr)
[![RStudio CRAN downloads](http://cranlogs.r-pkg.org/badges/grand-total/exampletestr)](http://cranlogs.r-pkg.org/badges/grand-total/exampletestr)
[![RStudio CRAN monthly downloads](http://cranlogs.r-pkg.org/badges/exampletestr)](http://cranlogs.r-pkg.org/badges/exampletestr)

## Installation

To install the release version from [CRAN](https://cran.r-project.org/package=exampletestr):
```{r Install-exampletestr, eval=FALSE}
install.packages("exampletestr")
```

To install the dev version from [GitHub](https://github.com/rorynolan/exampletestr):
```{r Install-dev-exampletestr, eval=FALSE}
remotes::install_github("rorynolan/exampletestr")
```

## Use

To learn how to use `exampletestr`, visit the package's website at https://rorynolan.github.io/exampletestr/.

## Contributing
The preferred method of contribution is via GitHub pull request. Please note that the `exampletestr` project is released with a [Contributor Code of Conduct](inst/CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.
# Contribution
Contributions to this package are welcome. The preferred method of contribution is through a github pull request. Feel free to contact me by creating an issue. Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.