use_readme: Use README

View source: R/use_readme.R

use_readmeR Documentation

Use README

Description

Creates an rmarkdown README file that autofills using metadata from the R package DESCRIPTION file.

Usage

use_readme(
  save_dir = here::here(),
  path = file.path(save_dir, "README.Rmd"),
  force_new = FALSE,
  show = FALSE,
  verbose = TRUE
)

Arguments

save_dir

Directory to save the file to.

path

Path to the file.

force_new

If the file already exists, overwrite it (default: FALSE).

show

Print the contents of the file in the R console.

verbose

Print messages.

Value

Path to README file.

Examples

## use default save_dir in practice
path <- use_readme(save_dir = tempdir()) 

rworkflows documentation built on Sept. 23, 2024, 1:08 a.m.