Skip to contents

This function adds a package-level documentation file (pkg-package.R) in the R/ folder. This file will make help available to the user via ?pkg (where pkg is the name of the package). It a good place to put general directives like @import and @importFrom.

Usage

add_package_doc(open = TRUE, overwrite = FALSE, quiet = FALSE)

Arguments

open

A logical value. If TRUE (default) the file is opened in the editor.

overwrite

A logical value. If this file is already present and overwrite = TRUE, it will be erased and replaced. Default is FALSE.

quiet

A logical value. If TRUE messages are deleted. Default is FALSE.

Value

No return value.

Examples

if (FALSE) {
add_package_doc()
}