Skip to content

Commit

Permalink
use @exportS3Method in favor of using own S3 registration code
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Dec 28, 2024
1 parent 555823b commit fc28ff0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 74 deletions.
3 changes: 2 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
S3method("[",fcwtr_scalogram)
S3method(as.data.frame,fcwtr_scalogram)
S3method(as.matrix,fcwtr_scalogram)
S3method(ggplot2::autoplot,fcwtr_scalogram)
S3method(plot,fcwtr_scalogram)
S3method(print,fcwtr_scalogram)
S3method(rbind,fcwtr_scalogram)
export(autoplot.fcwtr_scalogram)
S3method(tibble::as_tibble,fcwtr_scalogram)
export(fcwt)
export(fcwt_batch)
export(u)
Expand Down
3 changes: 2 additions & 1 deletion R/fcwtr_scalogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ as.data.frame.fcwtr_scalogram <- function(x, ...) {
)
}

#' @exportS3Method tibble::as_tibble
as_tibble.fcwtr_scalogram <- function(x, ...) {
stopifnot(requireNamespace("tibble", quietly = TRUE))

Expand Down Expand Up @@ -490,7 +491,7 @@ plot.fcwtr_scalogram <- function(x, n = 1000, time_unit = "s", freq_unit = "Hz",
#'
#' autoplot(res, time_unit = "ms")
#'
#' @export
#' @exportS3Method ggplot2::autoplot
autoplot.fcwtr_scalogram <- function(object, n = 1000,
time_unit = "s", freq_unit = "Hz", ...) {
stopifnot(requireNamespace("ggplot2", quietly = TRUE))
Expand Down
65 changes: 0 additions & 65 deletions R/zzz.R

This file was deleted.

8 changes: 1 addition & 7 deletions man/autoplot.fcwtr_scalogram.Rd

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

0 comments on commit fc28ff0

Please sign in to comment.