pkg_readme: Create a Boilerplate Package README File

Description Usage Arguments Details Author(s) Examples

View source: R/pkg_readme.R

Description

Creates a boilerplate package README.Rmd file by extracting information from an external yml input_file. See system.file("extdata", "DESCRIPTION.yml", package = "jeksterslabRpkg", mustWork = TRUE) for the input_file template.

Usage

1
pkg_readme(pkg_root, input_file = NULL, msg = "README.Rmd file path:")

Arguments

pkg_root

Character string. Package root directory.

input_file

Character string. YAML file containing DESCRIPTION fields and entries.

msg

Character string. Optional message. If supplied, prints msg dir/fn.

Details

Note that if pkg_create() is used, this function will be called.

THIS FUNCTION OVERWRITES AN EXISTING README.Rmd FILE IN THE SPECIFIED PACKAGE ROOT DIRECTORY. USE WITH CAUTION.

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

1
2
3
4
5
6
7
## Not run: 
pkg_readme(
  pkg_root = "~/boilerplatePackage",
  input_file = "DESCRIPTION.yml"
)

## End(Not run)

jeksterslabds/jeksterslabRpkg documentation built on Jan. 22, 2021, 11:43 p.m.