Skip to content

Commit ae49b53

Browse files
authored
Mention usethis::use_standalone() and fix package name typo (#1711)
1 parent 042ee8f commit ae49b53

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

R/standalone-s3-register.R

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# ---
22
# repo: r-lib/rlang
33
# file: standalone-s3-register.R
4-
# last-updated: 2022-08-29
4+
# last-updated: 2024-05-14
55
# license: https://unlicense.org
66
# ---
77
#
8+
# ## Changelog
9+
#
10+
# 2024-05-14:
11+
#
12+
# * Mentioned `usethis::use_standalone()`.
13+
#
814
# nocov start
915

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

0 commit comments

Comments
 (0)