Learn R Programming

Rd2md (version 0.0.5)

Rd2markdown: Rd file to markdown

Description

This function converts an Rd file into markdown format.

Usage

Rd2markdown(rdfile, outfile, append = FALSE)

Value

Parsed Rd as named list

Arguments

rdfile

Filepath to an .Rd file or an Rd object to parse.

outfile

Filepath to output file (markdown file).

append

If outfile exists, append to existing content.

Examples

Run this code
## give a markdown source file
rdfile = "~/git/MyPackage/man/myfun.Rd"
## specify, where markdown shall be stored
outfile = "/var/www/html/R_Web_app/md/myfun.md"
## create markdown
## Rd2markdown(rdfile = rdfile, outfile = outfile)

Run the code above in your browser using DataLab