Skip to content

Commit

Permalink
docs: description and safer example for layer_attribute_inspect()
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Nov 5, 2024
1 parent e6b33a9 commit b4ccb64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions R/layer_attributes.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ layer_attributes_get_names <- function(wfs = NULL,

#' Inspect layer attributes
#'
#' Summary of individual variable (attribute) in a dataset (layer) from a
#' data source (service).
#'
#' @inheritParams layer_attributes_summarise
#' @param attribute character string, name of layer attribute (variable). Use
#' [layer_attributes_get_names()] to get layer attribute names.
Expand All @@ -109,15 +112,13 @@ layer_attributes_get_names <- function(wfs = NULL,
#' factor or character variable levels or unique values.
#' @export
#'
#' @examples
#' \dontrun{
#' @examplesIf interactive()
#' wfs <- emodnet_init_wfs_client(service = "biology")
#' layer_attributes_get_names(wfs, layer = "mediseh_zostera_m_pnt")
#' layer_attribute_inspect(
#' wfs, layer = "mediseh_zostera_m_pnt",
#' attribute = "country"
#' )
#' }
layer_attribute_inspect <- function(wfs = NULL,
service = NULL,
service_version = NULL,
Expand Down
7 changes: 4 additions & 3 deletions man/layer_attribute_inspect.Rd

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

0 comments on commit b4ccb64

Please sign in to comment.