Skip to content

Commit ddd3d1c

Browse files
fix warning in .samples_bands function
1 parent 0fe724a commit ddd3d1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/api_samples.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@
8888
#' @title Get bands of time series samples
8989
#' @noRd
9090
#' @param samples Data.frame with samples
91+
#' @param dots Other parameters to be included
92+
#' @param include_base Include base bands?
9193
#' @return Bands for the first sample
9294
.samples_bands <- function(samples, ...) {
9395
# Bands of the first sample governs whole samples data
@@ -100,7 +102,7 @@
100102
return(bands)
101103
}
102104
#' @export
103-
.samples_bands.sits_base <- function(samples, include_base = TRUE) {
105+
.samples_bands.sits_base <- function(samples, ..., include_base = TRUE) {
104106
# Bands of the first sample governs whole samples data
105107
bands <- .samples_bands.sits(samples)
106108

@@ -113,7 +115,7 @@
113115
bands
114116
}
115117
#' @export
116-
.samples_bands.default <- function(samples) {
118+
.samples_bands.default <- function(samples, ...) {
117119
# Bands of the first sample governs whole samples data
118120
ts_bands <- .samples_bands.sits(samples)
119121
return(ts_bands)

0 commit comments

Comments
 (0)