This function creates several files to help the user to learn how to contribute to the project:
CONTRIBUTING.md
: general guidelines outlining the best way to contribute
to the project (can be modified);
.github/ISSUE_TEMPLATE/bug_report.md
: an issue template to report a bug
(can be modified);
.github/ISSUE_TEMPLATE/feature_request.md
: an issue template to suggest
a new feature (can be modified);
.github/ISSUE_TEMPLATE/other_issue.md
: an issue template for all other
types of issue (can be modified).
add_contributing(
email = NULL,
organisation = NULL,
open = TRUE,
overwrite = FALSE,
quiet = FALSE
)
No return value.
A character of length 1. The email address of the project maintainer.
A character of length 1. The name of the GitHub
organisation to host the package. If NULL
(default) the GitHub account
will be used. This argument is used to set the URL of the package
(hosted on GitHub).
A logical value. If TRUE
(default) the CONTRIBUTING.md
file
is opened in the editor.
A logical value. If files are already present and
overwrite = TRUE
, they will be erased and replaced. Default is FALSE
.
A logical value. If TRUE
messages are deleted. Default is
FALSE
.
Other create files:
add_citation()
,
add_code_of_conduct()
,
add_compendium()
,
add_description()
,
add_dockerfile()
,
add_license()
,
add_makefile()
,
add_package_doc()
,
add_readme_rmd()
,
add_renv()
,
add_testthat()
,
add_vignette()
if (FALSE) {
add_contributing()
}
Run the code above in your browser using DataLab