Package: doctest 0.3.0

doctest: Generate Tests from Examples Using 'roxygen' and 'testthat'

Creates 'testthat' tests from 'roxygen' examples using simple tags.

Authors:David Hugh-Jones [aut, cre]

doctest_0.3.0.tar.gz
doctest_0.3.0.zip(r-4.5)doctest_0.3.0.zip(r-4.4)doctest_0.3.0.zip(r-4.3)
doctest_0.3.0.tgz(r-4.4-any)doctest_0.3.0.tgz(r-4.3-any)
doctest_0.3.0.tar.gz(r-4.5-noble)doctest_0.3.0.tar.gz(r-4.4-noble)
doctest_0.3.0.tgz(r-4.4-emscripten)doctest_0.3.0.tgz(r-4.3-emscripten)
doctest.pdf |doctest.html
doctest/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/hughjonesd/doctest/issues

On CRAN:

2 exports 32 stars 2.61 score 43 dependencies 4 scripts 233 downloads

Last updated 8 months agofrom:25194e2cb5 (on v0.3.0). Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 13 2024
R-4.5-winOKAug 13 2024
R-4.5-linuxOKAug 13 2024
R-4.4-winOKAug 13 2024
R-4.4-macOKAug 13 2024
R-4.3-winOKAug 13 2024
R-4.3-macOKAug 13 2024

Exports:dt_roclettest_doctests

Dependencies:brewbriocallrclicommonmarkcpp11crayondescdiffobjdigestevaluatefansifsgluehighrjsonliteknitrlifecyclemagrittrpillarpkgbuildpkgconfigpkgloadpraiseprocessxpspurrrR6rematch2rlangroxygen2rprojrootstringistringrtestthattibbleutf8vctrswaldowithrxfunxml2yaml

Converting a package to use doctest

Rendered fromconversion.Rmdusingknitr::rmarkdownon Aug 13 2024.

Last update: 2023-04-25
Started: 2022-12-14

doctest

Rendered fromdoctest.Rmdusingknitr::rmarkdownon Aug 13 2024.

Last update: 2023-04-28
Started: 2022-11-25

Readme and manuals

Help Manual

Help pageTopics
Write testthat tests for your examples, using roxygen tagsdoctest-package doctest
Start a doctest@doctest doctest-tag
Add an example from a file@doctestExample doctestExample-tag
Create the doctest rocletdt_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 packagetest_doctests
Add a line of code to the test@testRaw testRaw-tag