Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention usethis::use_standalone() and fix package name typo #1711

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading