From 9ac33073affc01ddc9e1dad349a90a29f905a3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Tue, 5 Nov 2024 15:35:55 +0100 Subject: [PATCH] docs: description and safer example for `emodnet_wfs()` --- R/emodnet_wfs.R | 4 +++- man/emodnet_wfs.Rd | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/R/emodnet_wfs.R b/R/emodnet_wfs.R index 6dffbc80..69c2ba20 100644 --- a/R/emodnet_wfs.R +++ b/R/emodnet_wfs.R @@ -6,9 +6,11 @@ } #' Available EMODnet Web Feature Services #' +#' Which data sources (services) are available? +#' #' @return Tibble of available EMODnet Web Feature Services #' -#' @examples +#' @examplesIf interactive() #' emodnet_wfs() #' @export emodnet_wfs <- memoise::memoise(.emodnet_wfs) diff --git a/man/emodnet_wfs.Rd b/man/emodnet_wfs.Rd index f437e6c0..cdfcbac8 100644 --- a/man/emodnet_wfs.Rd +++ b/man/emodnet_wfs.Rd @@ -10,8 +10,10 @@ emodnet_wfs() Tibble of available EMODnet Web Feature Services } \description{ -Available EMODnet Web Feature Services +Which data sources (services) are available? } \examples{ +\dontshow{if (interactive()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} emodnet_wfs() +\dontshow{\}) # examplesIf} }