Learn R Programming

⚠️There's a newer version (1.0.1) of this package.Take me there.

roxygen2md

The goal of roxygen2md is to replace Rd syntax with Markdown in your package's roxygen2 documentation. Currently, the following substitutions are carried out:

  • \code{\link{...}} becomes [...()]
  • \code{\link[...]{...}} becomes [...::...()]
  • \code{...} becomes `...`

If necessary, DESCRIPTION is edited to enable Markdown in roxygen blocks. You'll need roxygen2 version 6.0.0 or later.

Call roxygen2md::roxygen2md() in your package's directory, or navigate to "Tools/Addins/Rd to Markdown" in RStudio.

More to come. The substitutions are not completely safe, please carefully examine the results!

Let me know if this works with your documentation.

Installation

Install from GitHub using

# install.packages("roxygen2")
# install.packages("remotes")
remotes::install_github("r-pkgs/roxygen2md")

Usage

In your package directory, run

roxygen2md::roxygen2md()

If you are using RStudio, simply choose the item "Rd to Markdown" from your "Addins" menu.


GPL-3 © Kirill Müller

Copy Link

Version

Install

install.packages('roxygen2md')

Monthly Downloads

562

Version

0.0-4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Kirill Müller

Last Published

February 19th, 2024

Functions in roxygen2md (0.0-4)

roxygen2md

Convert from Rd to Markdown in roxygen2 comments