Skip to content

Commit

Permalink
Introduce execution condition for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
christophscheuch committed Nov 3, 2024
1 parent cb67930 commit 1da17bd
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 31 deletions.
1 change: 0 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ jobs:
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
args: 'c("--no-manual","--no-examples")'
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Imports:
tidyr (>= 1.0.0),
rlang (>= 1.0.0)
Suggests:
curl,
knitr,
rmarkdown,
testthat (>= 3.2.0)
Expand Down
2 changes: 1 addition & 1 deletion R/wdi_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#'
#' @export
#'
#' @examples
#' @examplesIf curl::has_internet()
#' # Download single indicator for multiple geographies
#' wdi_get(c("US", "CA", "GB"), "NY.GDP.PCAP.KD")
#'
Expand Down
4 changes: 2 additions & 2 deletions R/wdi_get_geographies.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
#'
#' @export
#'
#' @examples
#' @examplesIf curl::has_internet()
#' # Download all geographies in English
#' wdi_get_geographies(language = "en")
#' wdi_get_geographies()
#'
#' # Download all geographies in Spanish
#' wdi_get_geographies(language = "zh")
Expand Down
2 changes: 1 addition & 1 deletion R/wdi_get_income_levels.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#'
#' @export
#'
#' @examples
#' @examplesIf curl::has_internet()
#' # Download all income levels in English
#' wdi_get_income_levels()
#'
Expand Down
5 changes: 2 additions & 3 deletions R/wdi_get_indicators.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@
#'
#' @export
#'
#' @examples
#'
#' @examplesIf curl::has_internet()
#' # Download all supported indicators in English
#' wdi_get_indicators(language = "en")
#' wdi_get_indicators()
#'
#' # Download all supported indicators in Spanish
#' wdi_get_indicators(language = "es")
Expand Down
2 changes: 1 addition & 1 deletion R/wdi_get_languages.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#'
#' @export
#'
#' @examples
#' @examplesIf curl::has_internet()
#' # Download all languages
#' wdi_get_languages()
#'
Expand Down
2 changes: 1 addition & 1 deletion R/wdi_get_lending_types.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#'
#' @export
#'
#' @examples
#' @examplesIf curl::has_internet()
#' # Download all lending types in English
#' wdi_get_lending_types()
#'
Expand Down
2 changes: 1 addition & 1 deletion R/wdi_get_regions.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#'
#' @export
#'
#' @examples
#' @examplesIf curl::has_internet()
#' # Download all regions
#' wdi_get_regions()
#'
Expand Down
4 changes: 2 additions & 2 deletions R/wdi_get_sources.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#'
#' @export
#'
#' @examples
#' # Download all supported data sources
#' @examplesIf curl::has_internet()
#' # Download all available data sources in English
#' wdi_get_sources()
#'
wdi_get_sources <- function(language = "en") {
Expand Down
4 changes: 2 additions & 2 deletions R/wdi_get_topics.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#'
#' @export
#'
#' @examples
#' # Download all topics
#' @examplesIf curl::has_internet()
#' # Download all available topics in English
#' wdi_get_topics()
#'
wdi_get_topics <- function(language = "en") {
Expand Down
2 changes: 1 addition & 1 deletion R/wdi_search.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#'
#' @export
#'
#' @examples
#' @examplesIf curl::has_internet()
#' # Download indicators
#' indicators <- wdi_get_indicators()
#'
Expand Down
3 changes: 2 additions & 1 deletion man/wdi_get.Rd

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

5 changes: 3 additions & 2 deletions man/wdi_get_geographies.Rd

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

3 changes: 2 additions & 1 deletion man/wdi_get_income_levels.Rd

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

6 changes: 3 additions & 3 deletions man/wdi_get_indicators.Rd

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

3 changes: 2 additions & 1 deletion man/wdi_get_languages.Rd

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

3 changes: 2 additions & 1 deletion man/wdi_get_lending_types.Rd

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

3 changes: 2 additions & 1 deletion man/wdi_get_regions.Rd

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

5 changes: 3 additions & 2 deletions man/wdi_get_sources.Rd

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

5 changes: 3 additions & 2 deletions man/wdi_get_topics.Rd

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

3 changes: 2 additions & 1 deletion man/wdi_search.Rd

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

0 comments on commit 1da17bd

Please sign in to comment.