Skip to content

Commit

Permalink
Mention usethis::use_standalone() and fix package name typo (#1711)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan authored May 15, 2024
1 parent 042ee8f commit ae49b53
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions R/standalone-s3-register.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# ---
# repo: r-lib/rlang
# file: standalone-s3-register.R
# last-updated: 2022-08-29
# last-updated: 2024-05-14
# license: https://unlicense.org
# ---
#
# ## Changelog
#
# 2024-05-14:
#
# * Mentioned `usethis::use_standalone()`.
#
# nocov start

#' Register a method for a suggested dependency
Expand All @@ -30,12 +36,13 @@
#' ```
#'
#' @section Usage in other packages:
#' To avoid taking a dependency on vctrs, you copy the source of
#' To avoid taking a dependency on rlang, you copy the source of
#' [`s3_register()`](https://github.com/r-lib/rlang/blob/main/R/standalone-s3-register.R)
#' into your own package. It is licensed under the permissive
#' [unlicense](https://choosealicense.com/licenses/unlicense/) to make it
#' crystal clear that we're happy for you to do this. There's no need to include
#' the license or even credit us when using this function.
#' into your own package or with
#' `usethis::use_standalone("r-lib/rlang", "s3-register")`. It is licensed under
#' the permissive [unlicense](https://choosealicense.com/licenses/unlicense/) to
#' make it crystal clear that we're happy for you to do this. There's no need to
#' include the license or even credit us when using this function.
#'
#' @param generic Name of the generic in the form `"pkg::generic"`.
#' @param class Name of the class
Expand Down

0 comments on commit ae49b53

Please sign in to comment.