Skip to content

Commit

Permalink
doc(*): examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dimfalk committed Dec 26, 2024
1 parent 0827482 commit c89fb4b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Package: EGLVgauges
Title: R Interface for data acquisition from pegel.eglv.de
Version: 0.2.3
Version: 0.2.4
Date: 2024-12-26
Authors@R:
person("Dimitri", "Falk", , "[email protected]", role = c("aut", "cre"))
Description: What the package does (one paragraph).
Description: Grants easy access to EGLV gauge data and metadata.
License: AGPL (>= 3)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Expand Down
2 changes: 2 additions & 0 deletions R/get_gauges.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#' @export
#'
#' @examples
#' \dontrun{
#' get_gauges()
#' }
get_gauges <- function() {

# debugging ------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions R/get_measurements.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#' @seealso [get_gauges()]
#'
#' @examples
#' \dontrun{
#' gauge <- get_gauges() |> dplyr::filter(id == "10103")
#'
#' get_measurements(gauge)
Expand All @@ -17,6 +18,7 @@
#' gauges <- get_gauges() |> dplyr::filter(waterbody == "Hammbach")
#'
#' get_measurements(gauges)
#' }
get_measurements <- function(x = NULL,
discharge = FALSE) {

Expand Down
2 changes: 2 additions & 0 deletions R/get_meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
#' @seealso [get_gauges()]
#'
#' @examples
#' \dontrun{
#' gauge <- get_gauges() |> dplyr::filter(id == "10103")
#' get_meta(gauge)
#'
#' gauges <- get_gauges() |> dplyr::filter(waterbody == "Hammbach")
#' get_meta(gauges)
#' }
get_meta <- function(x = NULL) {

# debugging ------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions man/get_gauges.Rd

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

2 changes: 2 additions & 0 deletions man/get_measurements.Rd

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

2 changes: 2 additions & 0 deletions man/get_meta.Rd

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

0 comments on commit c89fb4b

Please sign in to comment.