Creates one or more Issue Templates to be used in a GitHub repository.

use_issue_template(
  templates = c("bug_report.yml", "feature_request.yml", "config.yml"),
  save_dir = here::here(".github", "ISSUE_TEMPLATE"),
  path = file.path(save_dir, templates),
  force_new = FALSE,
  show = FALSE,
  verbose = TRUE
)

Arguments

templates

The names of templates to be used.

save_dir

Directory to save the Docker file to.

path

Path to the Docker file.

force_new

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

show

Print the contents of the Docker file in the R console.

verbose

Print messages.

Value

Path to Issue Templates.

Examples

path <- use_issue_template(save_dir=tempdir())
#> Creating new Issue Template ==> /tmp/RtmppaN4bb/bug_report.yml
#> Creating new Issue Template ==> /tmp/RtmppaN4bb/feature_request.yml
#> Creating new Issue Template ==> /tmp/RtmppaN4bb/config.yml