tests/testthat/test-parallel.R

for (tool in c("docute", "docsify", "mkdocs")) {
  test_that(sprintf("render_docs works in parallel: %s", tool), {
    skip_if(tool == "mkdocs" && !.venv_exists())
    create_local_package()
    setup_docs(tool = tool, path = getwd())
    usethis::use_readme_md(open = FALSE)
    expect_no_error(render_docs(path = getwd(), parallel = TRUE))
  })
}

Try the altdoc package in your browser

Any scripts or data that you put into this service are public.

altdoc documentation built on April 3, 2025, 10:52 p.m.