Skip to content

Commit ca22a65

Browse files
Merge pull request #1122 from M3nin0/cran/1.5.0
fix cran notes
2 parents 2dbdb82 + 1782014 commit ca22a65

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

NAMESPACE

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ S3method(.data_get_ts,raster_cube)
9393
S3method(.gc_arrange_images,raster_cube)
9494
S3method(.mosaic_split_band_date,derived_cube)
9595
S3method(.mosaic_split_band_date,raster_cube)
96+
S3method(.opensearch_cdse_extract_tile,RTC)
97+
S3method(.opensearch_cdse_extract_tile,S2MSI2A)
98+
S3method(.opensearch_cdse_search,RTC)
99+
S3method(.opensearch_cdse_search,S2MSI2A)
96100
S3method(.raster_check_package,terra)
97101
S3method(.raster_col,terra)
98102
S3method(.raster_crop,terra)
@@ -414,7 +418,8 @@ S3method(summary,sits_accuracy)
414418
S3method(summary,sits_area_accuracy)
415419
export("sits_bands<-")
416420
export("sits_labels<-")
417-
export(.mpc_clean_token_cache)
421+
export(.opensearch_cdse_extract_tile)
422+
export(.opensearch_cdse_search)
418423
export(impute_linear)
419424
export(sits_accuracy)
420425
export(sits_accuracy_summary)

R/api_opensearch.R

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,14 @@
156156
#' from `rstac`.
157157
#' @param items List of features compatible with `rstac` (`rstac::doc_items`).
158158
#' @return List of tiles.
159+
#' @export
159160
.opensearch_cdse_extract_tile <- function(items) {
160161
UseMethod(".opensearch_cdse_extract_tile")
161162
}
162163

163164
#' @keywords internal
164165
#' @noRd
166+
#' @export
165167
.opensearch_cdse_extract_tile.S2MSI2A <- function(items) {
166168
items_titles <- rstac::items_reap(items, field = c("properties", "title"))
167169
purrr::map(items_titles, function(item_title) {
@@ -173,6 +175,7 @@
173175

174176
#' @keywords internal
175177
#' @noRd
178+
#' @export
176179
.opensearch_cdse_extract_tile.RTC <- function(items) {
177180
"NoTilingSystem"
178181
}
@@ -191,31 +194,39 @@
191194
#' @param collection Open Search collection endpoint.
192195
#' @param start_date Start date.
193196
#' @param end_date End date.
194-
#' @param bbox Bounding box of the area from data must be from
197+
#' @param bbox Bounding box of the area from data must be from.
198+
#' @param platform Optional parameter specifying the platform in case of
199+
#' collections that include more than one satellite
200+
#' @param orbit Orbit name ("ascending", "descending") for SAR cubes.
195201
#' @param paginate A Boolean flag that indicates whether pagination
196202
#' should be used.
197203
#' @param limit Limit of content to be retrieved per page. Use `paginate`
198204
#' to manage if multiple pages should be requested.
199205
#' @return List of features compatible with
200206
#' `rstac` (`rstac::doc_items`).
207+
#' @export
201208
.opensearch_cdse_search <- function(product_type,
202209
source,
203210
collection,
204211
start_date,
205212
end_date,
206213
bbox,
214+
platform,
215+
orbit = NULL,
207216
paginate = TRUE,
208217
limit = 1000, ...) {
209218
UseMethod(".opensearch_cdse_search")
210219
}
211220

212221
#' @keywords internal
213222
#' @noRd
223+
#' @export
214224
.opensearch_cdse_search.S2MSI2A <- function(product_type,
215225
source, collection,
216226
start_date, end_date,
217227
bbox,
218228
platform = NULL,
229+
orbit = NULL,
219230
paginate = TRUE,
220231
limit = 1000, ...) {
221232
.check_set_caller(".opensearch_cdse_search_s2msi2a")
@@ -238,6 +249,7 @@
238249

239250
#' @keywords internal
240251
#' @noRd
252+
#' @export
241253
.opensearch_cdse_search.RTC <- function(product_type,
242254
source, collection,
243255
start_date, end_date,

R/api_source_cdse.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@
181181
#' @param multicores Number of workers used to create the CDSE cube.
182182
#' @param platform Satellite platform (not supported).
183183
#' @return An object referring the images of a sits cube.
184-
#'
185184
#' @export
186185
.source_items_new.cdse_cube <- function(source, ...,
187186
collection,

R/api_source_mpc.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,14 +523,12 @@
523523
.check_that(.has_not(tiles))
524524
return(invisible(source))
525525
}
526-
#' @title Cleak MPC token cache
526+
#' @title Clear MPC token cache
527527
#' @name .mpc_clean_token_cache
528-
#' @description
529-
#' Cleans the the token cache for MPC to reduce timeout effects
528+
#' @description Cleans the the token cache for MPC to reduce timeout effects
530529
#' @return Called for side effects.
531530
#' @keywords internal
532531
#' @noRd
533-
#' @export
534532
.mpc_clean_token_cache <- function() {
535533
mpc_token <- get("ms_token", envir = asNamespace("rstac"), inherits = TRUE)
536534
cached_tokens <- names(mpc_token)

0 commit comments

Comments
 (0)