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
# \donttest{
tmpdir <- tempdir()
usethis::create_package(path = tmpdir)
#> ✔ Setting active project to "/tmp/RtmpEsKggO".
#> Package: RtmpEsKggO
#> Title: What the Package Does (One Line, Title Case)
#> Version: 0.0.0.9000
#> Authors@R (parsed):
#> * First Last <first.last@example.com> [aut, cre]
#> Description: What the package does (one paragraph).
#> License: `use_mit_license()`, `use_gpl3_license()` or friends to
#> pick a license
#> Config/roxygen2/version: 8.1.0
#> Encoding: UTF-8
#> Roxygen: list(markdown = TRUE)
#> ✔ Setting active project to "<no active project>".
use_bugreports(
url = "https://github.com/WangLabCSU/rpkgkit/issues",
path = tmpdir
)
#> ✔ Setting active project to "/tmp/RtmpEsKggO".
#> ✔ Setting BugReports field to <https://github.com/WangLabCSU/rpkgkit/issues>.
# }
