R/api-misc.R

Defines functions server_status

# api-misc.R
#' @importFrom httr GET

# Get information about the version of iServer and web.
server_status <- function(base_url, verbose = FALSE) {
  response <- httr::GET(url = paste0(base_url, "/api/status"))

  if (verbose) {
    print(response$url)
  }
  response_handler(response, "Failed to check server status")

  return(response)
}

Try the mstrio package in your browser

Any scripts or data that you put into this service are public.

mstrio documentation built on April 13, 2022, 5:07 p.m.