Alternative to pkgdown to document R packages https://altdoc.etiennebacher.com
  • R 95.6%
  • HTML 4.4%
Find a file
2025-12-19 12:24:33 +01:00
.github ci: Add workflow with Jarl (#352) 2025-12-19 12:24:33 +01:00
altdoc render_docs(autolink = TRUE) uses downlit (#273) 2024-04-08 08:15:16 -04:00
flir ci: Use CRAN version of flir in workflow (#330) 2025-07-03 15:14:06 +02:00
inst Release 0.6.0 (#335) 2025-09-19 14:01:44 +02:00
man Remove second copy of license paragraph, re-render Rd (#342) 2025-10-09 18:00:05 +02:00
man-roxygen Run air format . and setup CI (#310) 2025-02-07 18:34:08 +01:00
R ci: Add workflow with Jarl (#352) 2025-12-19 12:24:33 +01:00
tests ci: Add workflow with Jarl (#352) 2025-12-19 12:24:33 +01:00
vignettes feat: Implement the envvar ALTDOC_VENV to specify the venv folder to use (mkdocs only) (#339) 2025-09-30 13:44:07 +02:00
.gitignore README fig path (#184) 2023-12-03 16:49:44 -05:00
.lintr add .lintr file 2023-12-17 11:42:40 +01:00
.Rbuildignore Release 0.6.0 (#335) 2025-09-19 14:01:44 +02:00
air.toml Run air format . and setup CI (#310) 2025-02-07 18:34:08 +01:00
altdoc.Rproj update docs 2023-10-28 11:37:13 -04:00
codecov.yml misc: add codecov 2022-04-30 10:00:00 +02:00
cran-comments.md Release 0.7.0 (#348) 2025-10-30 22:32:41 +01:00
DESCRIPTION Release 0.7.0 (#348) 2025-10-30 22:32:41 +01:00
LICENSE fix r cmd check 2021-08-26 15:55:27 +02:00
LICENSE.md fix r cmd check 2021-08-26 15:55:27 +02:00
NAMESPACE init (#147) 2023-11-24 10:22:02 +01:00
NEWS.md Release 0.7.0 (#348) 2025-10-30 22:32:41 +01:00
README.md altdoc 0.4.0 (#288) 2024-07-23 23:15:39 +02:00
README.qmd altdoc 0.4.0 (#288) 2024-07-23 23:15:39 +02:00


altdoc is a simple and powerful package to create documentation websites for R packages. altdoc makes it trivial to create beautiful websites for simple R packages, and it can efficiently organize documentation for complex projects with hundreds of functions or dozens vignettes. Its features include:

  • Support for several documentation frameworks:
  • Render:
    • Quarto and Rmarkdown vignettes.
    • Reference pages for exported functions, along with evaluated examples.
    • Common sections: README.md, NEWS.md, CHANGELOG.md, CODE_OF_CONDUCT.md, CITATION.md, etc.
  • Preview the site:
    • Browser
    • RStudio Viewer
  • Deploy the website:
    • Github pages
    • Other platforms

Installation

You can install the CRAN version:

install.packages("altdoc")

You can also install the development version to benefit from the latest bug fixes:

remotes::install_github("etiennebacher/altdoc")

Quick start

A typical workflow with altdoc is to execute these commands from the root directory of the package:

### Create the website structure for one of the documentation generators
setup_docs(tool = "docsify")
# setup_docs(tool = "docute")
# setup_docs(tool = "mkdocs")
# setup_docs(tool = "quarto_website")

### Render the vignettes and man pages
render_docs()

### Preview the website
preview_docs()

See the Get Started vignette for more details.

Demos

The websites in this table were created using Altdoc:

Document Generator R Package Website Settings
Docute altdoc 🌐altdoc.etiennebacher.com Altdoc Settings
Quarto modelsummary 🌐modelsummary.com Altdoc settings
Quarto marginaleffects 🌐marginaleffects.com Altdoc Settings
Quarto tinytable 🌐vincentarelbundock.github.io/tinytable/ Altdoc Settings
Quarto tinyplot 🌐grantmcdermott.com/tinyplot Altdoc Settings
MkDocs polars 🌐pola-rs.github.io/r-polars Github Repository
Docsify conductor 🌐conductor.etiennebacher.com GitHub Repository
Docsify countrycode 🌐vincentarelbundock.github.io/countrycode Altdoc Settings
Docsify WDI 🌐vincentarelbundock.github.io/WDI Altdoc Settings

More

Tutorials

The altdoc website includes more information on topics like:

The initial version of the logo was created with Chat-GPT and edited in Gimp by Vincent Arel-Bundock.