Skip to content

Commit

Permalink
use_package_doc details for #1170
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDedman committed Oct 4, 2023
1 parent 467ff57 commit b6fd2d6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions R/documentation.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
#' Packages](https://r-pkgs.org)
#' @inheritParams use_template
#' @export
#' @details
#' use_package_doc() leads to an R-CMD-CHECK warning if package shares name with a
#' function ([Github Issue](https://github.com/r-lib/usethis/issues/1170)). This can be
#' obviated by including the following lines at the top of your mypackagename-package.R script:
#'
#' `@keywords internal`
#'
#' `@aliases reprex-package`
#'
#' `"_PACKAGE"`
use_package_doc <- function(open = rlang::is_interactive()) {
check_is_package("use_package_doc()")
use_template(
Expand Down
11 changes: 11 additions & 0 deletions man/use_package_doc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b6fd2d6

Please sign in to comment.