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,424

Last month

379

Last week

93

Average per day

13

Daily downloads

Total downloads

Description file content

Package
exampletestr
Type
Package
Title
Help for Writing Unit Tests Based on Function Examples
Version
1.5.0
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
Encoding
UTF-8
LazyData
true
Depends
R (>= 3.5.0)
Imports
filesstrings (>= 3.1.5), magrittr (>= 1.5), stringr (>= 1.2.0), styler (>= 1.1.1), purrr, roxygen2, checkmate (>= 1.9.3), readr, ore (>= 1.4.0), fs (>= 1.2.3), glue (>= 1.3.0), rlang (>= 0.3.3), withr (>= 2.1.0), usethis (>= 1.5.1)
RoxygenNote
6.1.1
URL
BugReports
https://www.github.com/rorynolan/exampletestr/issues
Suggests
testthat (>= 2.1.0), covr, knitr, rmarkdown, spelling, pacman, crayon
VignetteBuilder
knitr
Language
en-US
NeedsCompilation
no
Packaged
2019-07-05 14:29:48 UTC; rnolan
Author
Rory Nolan [aut, cre] (), Sergi Padilla-Parra [ths] (), Thomas Quinn [rev] (), Laurent Gatto [rev] ()
Repository
CRAN
Date/Publication
2019-07-05 17:10:17 UTC

install.packages('exampletestr')

1.5.0

14 days ago

https://rorynolan.github.io/exampletestr

Rory Nolan

GPL-3

Depends on

R (>= 3.5.0)

Imports

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

Suggests

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

Discussions