Sets the BugReports field of a package's DESCRIPTION file. By default,
the GitHub issues page URL is derived from the configured git remote
(origin).
Requires that the target directory is an R package root (contains a
DESCRIPTIONfile).Both
https://andgit@style remotes are supported (seeuse_url()).
Arguments
- url
Character. The bug reports URL (usually the GitHub issues page). If
NULL(the default), it is derived from thegitremote configuration by appending/issuesto the repository URL.- path
Path to the package root. If
NULL(the default), the current working directory is used.- ...
Must be empty. Reserved for future arguments.
Examples
if (FALSE) { # \dontrun{
tmpdir <- tempdir()
usethis::create_package(path = tmpdir)
use_bugreports(
url = "https://github.com/WangLabCSU/rpkgkit/issues",
path = tmpdir
)
} # }
