Package: doctest 0.4.0
doctest: Generate Tests from Examples Using 'roxygen' and 'testthat'
Creates 'testthat' tests from 'roxygen' examples using simple tags.
Authors:
doctest_0.4.0.tar.gz
doctest_0.4.0.zip(r-4.7)doctest_0.4.0.zip(r-4.6)doctest_0.4.0.zip(r-4.5)
doctest_0.4.0.tgz(r-4.6-any)doctest_0.4.0.tgz(r-4.5-any)
doctest_0.4.0.tar.gz(r-4.7-any)doctest_0.4.0.tar.gz(r-4.6-any)
doctest_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
doctest/json (API)
NEWS
| # Install 'doctest' in R: |
| install.packages('doctest', repos = c('https://community.r-multiverse.org', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hughjonesd/doctest/issues
Pkgdown/docs site:https://hughjonesd.github.io
Last updated from:ef97b06623 (on v0.4.0). Checks:9 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 158 | ||
| source / vignettes | OK | 159 | ||
| linux-release-x86_64 | OK | 190 | ||
| macos-release-arm64 | OK | 89 | ||
| macos-oldrel-arm64 | OK | 105 | ||
| windows-devel | OK | 76 | ||
| windows-release | OK | 74 | ||
| windows-oldrel | OK | 80 | ||
| wasm-release | OK | 142 |
Exports:dt_roclettest_doctests
Dependencies:brewbriocallrclicommonmarkcpp11crayondescdiffobjevaluatefsgluehighrjsonliteknitrlifecyclemagrittrpkgbuildpkgloadpraiseprocessxpspurrrR6rlangroxygen2rprojroottestthatvctrswaldowithrxfunxml2yaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Write testthat tests for your examples, using roxygen tags | doctest-package doctest |
| Start a doctest | @doctest doctest-tag |
| Add an example from a file | @doctestExample doctestExample-tag |
| Create the doctest roclet | dt_roclet |
| Create an expectation | @expect expect-tag |
| Create an expectation as-is | @expectRaw expectRaw-tag |
| Exclude example code from a test | @omit @resume omit-tag resume-tag |
| Create a snapshot test | @snap snap-tag |
| Test doctests in a package | test_doctests |
| Add a line of code to the test | @testRaw testRaw-tag |
