Skip to content

Commit

Permalink
document list service rastyer fns
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Oct 4, 2024
1 parent e453efa commit 3ea9642
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CRAN-SUBMISSION
.httr-oauth
.Rprofile
.Rprofile
Expand Down
3 changes: 0 additions & 3 deletions CRAN-SUBMISSION

This file was deleted.

1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export(get_layer_estimates)
export(get_layers)
export(list_fields)
export(list_items)
export(list_service_raster_fns)
export(match_spatial_rel)
export(prepare_spatial_filter)
export(publish_item)
Expand Down
12 changes: 10 additions & 2 deletions R/raster-fns.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@
#' @inheritParams arcgisutils::infer_esri_type
#' @param x an `ImageServer`.
#' @returns a data.frame of the available raster functions.
#' @export
#' @examples
#' # example code
#'
#' # use paste to avoid cran note
#' furl <- paste0(
#' "https://di-usfsdata.img.arcgis.com/arcgis/rest/services",
#' "/FIA_BIGMAP_2018_Species_Aboveground_Biomass/ImageServer"
#' )
#'
#' service <- arc_open(furl)
#' raster_fns <- list_service_raster_fns(service)
#' head(raster_fns)
list_service_raster_fns <- function(x, arg = rlang::caller_arg(x), call = rlang::caller_call()) {
check_inherits_any(x, "ImageServer")

Expand Down
9 changes: 8 additions & 1 deletion man/list_service_raster_fns.Rd

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

0 comments on commit 3ea9642

Please sign in to comment.