Skip to content

Commit

Permalink
Add S7-in-package helpers. (#22)
Browse files Browse the repository at this point in the history
* Add S7-in-package helpers.

* Avoid the onAttach bit.

That generates an R CMD check warning.
  • Loading branch information
jonthegeek committed Aug 27, 2023
1 parent 1eee33e commit 597ce2d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
export(api_contact)
export(api_info)
export(api_license)
if (getRversion() < "4.3.0") importFrom("S7", "@")
importFrom(rlang,check_dots_empty)
importFrom(rlang,check_dots_used)
importFrom(stbl,stabilize_chr_scalar)
Expand Down
7 changes: 7 additions & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# enable usage of <S7_object>@name in package code
#' @rawNamespace if (getRversion() < "4.3.0") importFrom("S7", "@")
NULL

.onLoad <- function(...) {
S7::methods_register()
}

0 comments on commit 597ce2d

Please sign in to comment.