Skip to content

Commit

Permalink
Add basic documentation for status check function
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed Aug 17, 2024
1 parent 2b15262 commit d06ed25
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Generated by roxygen2: do not edit by hand

export(status_check)
15 changes: 15 additions & 0 deletions R/status_check.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#' Check that all DAWA services are operational
#'
#' @param return_df This option makes the function return a dataframe object
#' with the services and their statuses listed
#' @param error_if_unavailable This option forces the function to throw an error
#' in the event that one or more services are unreachable.
#'
#' @return Returns a data frame object with the services and their statuses. Is
#' only returned if `return_df = TRUE`
#' @export
#'
#' @examples
#'
#' status_check()
#'
status_check <- function(return_df = FALSE, error_if_unavailable = FALSE) {
status_url <- "https://erdataforsyningennede.site24x7statusiq.com/rss"

Expand Down
27 changes: 27 additions & 0 deletions man/status_check.Rd

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

0 comments on commit d06ed25

Please sign in to comment.