add_code_of_conduct: Add code of conduct

View source: R/add_code_of_conduct.R

add_code_of_conductR Documentation

Add code of conduct

Description

This function creates a CODE_OF_CONDUCT.md file adapted from the Contributor Covenant, version 2.1 available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.

Usage

add_code_of_conduct(
  email = NULL,
  open = TRUE,
  overwrite = FALSE,
  quiet = FALSE
)

Arguments

email

A character of length 1. The email address of the project maintainer.

open

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

overwrite

A logical value. If files are already present and overwrite = TRUE, they will be erased and replaced. Default is FALSE.

quiet

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

Value

No return value.

See Also

Other create files: add_citation(), add_compendium(), add_contributing(), add_description(), add_dockerfile(), add_license(), add_makefile(), add_package_doc(), add_readme_rmd(), add_renv(), add_testthat(), add_vignette()

Examples

## Not run: 
add_code_of_conduct()

## End(Not run)

FRBCesab/rcompendium documentation built on Nov. 15, 2024, 9:38 p.m.