exampletestr

Help for Writing Unit Tests Based on Function Examples

Take the examples written in your documentation of functions and use them to create shells (skeletons which must be manually completed by the user) of test files to be tested with the 'testthat' package. Sort of like python 'doctests' for R.

Total

12,568

Last month

361

Last week

104

Average per day

12

Daily downloads

Total downloads

Description file content

Type
Package
Package
exampletestr
Title
Help for Writing Unit Tests Based on Function Examples
Version
1.5.2
Maintainer
Rory Nolan
Description
Take the examples written in your documentation of functions and use them to create shells (skeletons which must be manually completed by the user) of test files to be tested with the 'testthat' package. Sort of like python 'doctests' for R.
License
GPL-3
URL
BugReports
https://www.github.com/rorynolan/exampletestr/issues
Depends
R (>= 3.5.0)
Imports
checkmate (>= 1.9.3), filesstrings (>= 3.1.5), fs (>= 1.2.3), glue (>= 1.3.0), magrittr (>= 1.5), ore (>= 1.4.0), purrr, readr, rlang (>= 0.3.3), roxygen2, stringr (>= 1.2.0), styler (>= 1.2.0), usethis (>= 1.5.1), withr (>= 2.1.0)
Suggests
covr, crayon, knitr, pacman, rmarkdown, spelling, testthat (>= 2.1.0)
VignetteBuilder
knitr
Encoding
UTF-8
Language
en-US
LazyData
true
RoxygenNote
6.1.1
NeedsCompilation
no
Packaged
2019-11-05 18:34:52 UTC; rnolan
Author
Rory Nolan [aut, cre] (), Sergi Padilla-Parra [ths] (), Thomas Quinn [rev] (), Laurent Gatto [rev] ()
Repository
CRAN
Date/Publication
2019-11-05 19:10:03 UTC

install.packages('exampletestr')

1.5.2

10 days ago

https://rorynolan.github.io/exampletestr

Rory Nolan

GPL-3

Depends on

R (>= 3.5.0)

Imports

checkmate (>= 1.9.3), filesstrings (>= 3.1.5), fs (>= 1.2.3), glue (>= 1.3.0), magrittr (>= 1.5), ore (>= 1.4.0), purrr, readr, rlang (>= 0.3.3), roxygen2, stringr (>= 1.2.0), styler (>= 1.2.0), usethis (>= 1.5.1), withr (>= 2.1.0)

Suggests

covr, crayon, knitr, pacman, rmarkdown, spelling, testthat (>= 2.1.0)

Discussions