Title: | Utilities for Package Development |
---|---|
Description: | Tools and utilities for package development currently not available from usual development tools. These are mostly linked to personal preferences during the development process. They assist in making routine and repetitive tasks easily implementable. |
Authors: | Ernest Guevarra [aut, cre, cph]
|
Maintainer: | Ernest Guevarra <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.2.0.9000 |
Built: | 2025-02-09 06:16:12 UTC |
Source: | https://github.com/katilingban/pakete |
Add badges to README
add_badge_status( status = c("concept", "wip", "suspended", "abandoned", "active", "inactive", "unsupported", "moved"), path = NULL, .url = NULL ) add_badge_codefactor(repo = NULL, path = NULL) add_badge_zenodo(repo = NULL, path = NULL)
add_badge_status( status = c("concept", "wip", "suspended", "abandoned", "active", "inactive", "unsupported", "moved"), path = NULL, .url = NULL ) add_badge_codefactor(repo = NULL, path = NULL) add_badge_zenodo(repo = NULL, path = NULL)
status |
A character value for status to be assigned to project. This can be either "concept", "wip", "suspended", "abandoned", "active", "inactive", "unsupported", or "moved". |
path |
Path to file to add repostatus badge to. Set to NULL by default which would indicate that a README file in the root directory of the project is the target file. |
.url |
If |
repo |
Short remote git repository name. If NULL, is determined based on current git settings. |
An entry to the badge section of the README of the repository. Otherwise, a print of the markdown text for the status badge.
if (FALSE) { add_badge_status("wip") add_badge_codefactor(repo = "katilingban/pakete") add_badge_zenodo(repo = "katilingban/pakete") }
if (FALSE) { add_badge_status("wip") add_badge_codefactor(repo = "katilingban/pakete") add_badge_zenodo(repo = "katilingban/pakete") }
Add contributing markdown
add_contributing(repo = NULL, overwrite = FALSE)
add_contributing(repo = NULL, overwrite = FALSE)
repo |
Short remote git repository name. If NULL, is determined based on current git settings. |
overwrite |
Logical. Should an existing CONTRIBUTING.md file be overwritten? Default to FALSE. |
A CONTRIBUTING.md file in the .github
directory
if (FALSE) add_contributing("katilingban/pakete")
if (FALSE) add_contributing("katilingban/pakete")
Add GitHub Actions
add_github_action(gha_name = NULL, overwrite = FALSE)
add_github_action(gha_name = NULL, overwrite = FALSE)
gha_name |
Short name of GitHub Action to add. Currently supports GitHub Action for Netlify deployment of testing version of pkgdown website ("netlify"). |
overwrite |
Logical. Should an existing GitHub Action be overwritten? Default is FALSE. |
A GitHub Action YAML file of the specified workflow to be added in
.github/workflows
directory.
if (FALSE) add_github_action(gha_name = "netlify")
if (FALSE) add_github_action(gha_name = "netlify")
Add issue templates
add_issue_template( issue = NULL, path = ".github/ISSUE_TEMPLATE", overwrite = FALSE )
add_issue_template( issue = NULL, path = ".github/ISSUE_TEMPLATE", overwrite = FALSE )
issue |
A character value of type of issue template to create. Choices are "initial-cran-release", "update-cran-release", "submission-cran", and "acceptance-cran". |
path |
Path to file to add issue template into. Set to ".github/ISSUE_TEMPLATE" which is the default location specified by GitHub. |
overwrite |
Logical. If an existing issue template with the same file name is found, should it be overwritten? Default to FALSE. |
A specified issue template markdown file in the specified path
.
if (interactive()) add_issue_template("initial-cran-release")
if (interactive()) add_issue_template("initial-cran-release")
Add HTML snippet for package hex sticker in README
add_logo(repo = NULL)
add_logo(repo = NULL)
repo |
Short remote git repository name. If NULL, is determined based on current git settings. |
An entry to the first level header section of the README of the repository.
if (interactive()) add_logo()
if (interactive()) add_logo()