Skip to content

Commit 98c3654

Browse files
committed
export detect change api
1 parent dd05607 commit 98c3654

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

R/sits_detect_change.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#' each point (tibble of class "sits")
3939
#' or a data cube indicating detections in each pixel
4040
#' (tibble of class "detections_cube").
41+
#' @export
4142
sits_detect_change <- function(data,
4243
cd_method,
4344
...,
@@ -48,6 +49,7 @@ sits_detect_change <- function(data,
4849
}
4950

5051
#' @rdname sits_detect_change
52+
#' @export
5153
sits_detect_change.sits <- function(data,
5254
cd_method,
5355
...,
@@ -72,6 +74,7 @@ sits_detect_change.sits <- function(data,
7274
}
7375

7476
#' @rdname sits_detect_change
77+
#' @export
7578
sits_detect_change.raster_cube <- function(data,
7679
cd_method, ...,
7780
roi = NULL,
@@ -177,6 +180,7 @@ sits_detect_change.raster_cube <- function(data,
177180
}
178181

179182
#' @rdname sits_detect_change
183+
#' @export
180184
sits_detect_change.default <- function(data, cd_method, ...) {
181185
stop("Input should be a sits tibble or a data cube")
182186
}

R/sits_detect_change_method.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#' @return Change detection method prepared
1313
#' to be passed to
1414
#' \code{\link[sits]{sits_detect_change}}
15+
#' @export
1516
sits_detect_change_method <- function(samples, cd_method = sits_dtw()) {
1617
# set caller to show in errors
1718
.check_set_caller("sits_detect_change_method")

R/sits_dtw.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#' used in operations with data cubes.
2020
#' @return Change detection method prepared to be passed to
2121
#' \code{\link[sits]{sits_detect_change_method}}
22+
#' @export
2223
sits_dtw <-
2324
function(samples = NULL,
2425
...,

0 commit comments

Comments
 (0)