Package: exampletestr 1.7.3

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.

Authors:Rory Nolan [aut, cre], Sergi Padilla-Parra [ths], Thomas Quinn [rev], Laurent Gatto [rev]

exampletestr_1.7.3.tar.gz
exampletestr_1.7.3.zip(r-4.5)exampletestr_1.7.3.zip(r-4.4)exampletestr_1.7.3.zip(r-4.3)
exampletestr_1.7.3.tgz(r-4.5-any)exampletestr_1.7.3.tgz(r-4.4-any)exampletestr_1.7.3.tgz(r-4.3-any)
exampletestr_1.7.3.tar.gz(r-4.5-noble)exampletestr_1.7.3.tar.gz(r-4.4-noble)
exampletestr_1.7.3.tgz(r-4.4-emscripten)exampletestr_1.7.3.tgz(r-4.3-emscripten)
exampletestr.pdf |exampletestr.html
exampletestr/json (API)
NEWS

# Install 'exampletestr' in R:
install.packages('exampletestr', repos = c('https://rorynolan.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rorynolan/exampletestr/issues

Pkgdown site:https://rorynolan.github.io

On CRAN:

Conda:

6.63 score 37 stars 8 scripts 1.3k downloads 1 mentions 3 exports 70 dependencies

Last updated 5 months agofrom:408cfc63d5. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 06 2025
R-4.5-winOKMar 06 2025
R-4.5-macOKMar 06 2025
R-4.5-linuxOKMar 06 2025
R-4.4-winOKMar 06 2025
R-4.4-macOKMar 06 2025
R-4.4-linuxOKMar 06 2025
R-4.3-winOKMar 06 2025
R-4.3-macOKMar 06 2025

Exports:make_test_shell_funmake_tests_shells_filemake_tests_shells_pkg

Dependencies:askpassbackportsbitbit64brewcallrcheckmateclicliprcommonmarkcpp11crayoncredentialscurldescdigestevaluatefansifsgertghgitcredsgluehighrhmshttr2inijsonliteknitrlifecyclemagrittropensslpillarpkgbuildpkgconfigpkgloadprettyunitsprocessxprogresspspurrrR.cacheR.methodsS3R.ooR.utilsR6rappdirsreadrrlangroxygen2rprojrootrstudioapistrexstringistringrstylersystibbletidyselecttzdbusethisutf8vctrsvroomwhiskerwithrxfunxml2yamlzip

A whole package

Rendered fromwhole-package.Rmdusingknitr::rmarkdownon Mar 06 2025.

Last update: 2020-03-10
Started: 2018-09-26

One .R file at a time

Rendered fromone-file-at-a-time.Rmdusingknitr::rmarkdownon Mar 06 2025.

Last update: 2020-03-10
Started: 2018-09-26

One function at a time

Rendered fromone-function-at-a-time.Rmdusingknitr::rmarkdownon Mar 06 2025.

Last update: 2020-03-10
Started: 2018-09-26

Readme and manuals

Help Manual

Help pageTopics
Create test shells.make-test-shells make_tests_shells_file make_tests_shells_pkg make_test_shell_fun