Learn R Programming

documenter

An R package for documenting files

Installation

The package can be installed via CRAN or GitHub using either of the following commands.

# Install via CRAN.
install.packages("documenter")
# Install via GitHub.
install.packages("devtools")
devtools::install_github("mamc-dci/documenter")

Usage

The package can be loaded with the library function.

# Load the package.
library(documenter)

After loading the package, the files of a directory can be documented using the document_it function. This function can be executed as follows:

document_it(
  input_directory = "man",
  output_file = "documentation",
  annotation_file = NULL
)

Disclaimer

The views expressed are those of the author(s) and do not reflect the official policy of the Department of the Army, the Department of Defense or the U.S. Government.

Copy Link

Version

Install

install.packages('documenter')

Monthly Downloads

198

Version

0.1.3

License

MIT + file LICENSE

Maintainer

Zachary Colburn

Last Published

January 5th, 2023

Functions in documenter (0.1.3)

extract_annotations

Extract annotations from a yaml annotation file.
fix_path

Fix a file path.
create_annotation_file

Create a template annotation file.
insert_paragraphs

Insert each element of a vector into a document as a string of paragraphs.
document_it

Generate documentation for the files of a directory.