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:

5.81 score 32 stars 4 scripts 253 downloads 2 exports 37 dependencies

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

TargetResultDate
Doc / VignettesOKNov 20 2024
R-4.5-winOKNov 20 2024
R-4.5-linuxOKNov 20 2024
R-4.4-winOKNov 20 2024
R-4.4-macOKNov 20 2024
R-4.3-winOKNov 20 2024
R-4.3-macOKNov 20 2024

Exports:dt_roclettest_doctests

Dependencies:brewbriocallrclicommonmarkcpp11crayondescdiffobjdigestevaluatefsgluehighrjsonliteknitrlifecyclemagrittrpkgbuildpkgloadpraiseprocessxpspurrrR6rlangroxygen2rprojrootstringistringrtestthatvctrswaldowithrxfunxml2yaml

Converting a package to use doctest

Rendered fromconversion.Rmdusingknitr::rmarkdownon Nov 20 2024.

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

doctest

Rendered fromdoctest.Rmdusingknitr::rmarkdownon Nov 20 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