Skip to content

Commit

Permalink
fix R CMD check: examples and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lschneiderbauer committed Dec 22, 2024
1 parent 8e1fd3f commit 7b8f78b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ S3method(plot,fcwtr_scalogram)
export(fcwt)
export(fcwt_batch)
importFrom(graphics,plot)
importFrom(utils,head)
importFrom(utils,setTxtProgressBar)
importFrom(utils,tail)
importFrom(utils,txtProgressBar)
useDynLib(fCWTr, .registration = TRUE)
7 changes: 4 additions & 3 deletions R/fcwt_batch.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@
#' sample_freq = 44100,
#' freq_begin = 100,
#' freq_end = 11000,
#' n_freqs = 10,
#' n_freqs = 30,
#' sigma = 10,
#' max_batch_size = 50000,
#' time_resolution = 0.001
#' time_resolution = 0.01
#' )
#'
#' plot(res)
fcwt_batch <- function(signal,
sample_freq,
n_freqs,
Expand Down
2 changes: 2 additions & 0 deletions R/fcwtr_scalogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ sc_dim_time <- function(x) {
#' @return Returns a vector of two values, the first and the last time index
#' that guarantee that all data is available and trustable (no boundary effects).
#' @noRd
#' @importFrom utils head
#' @importFrom utils tail
sc_coi_time_interval <- function(x) {
stopifnot(inherits(x, "fcwtr_scalogram"))

Expand Down
7 changes: 4 additions & 3 deletions man/fcwt_batch.Rd

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

0 comments on commit 7b8f78b

Please sign in to comment.