Skip to contents

This function fetches the status of all available SDFI services. This package depends on at least one of these. It checks the official status page. The status can also be followed on their official X-page @DriftDataforsyn.

Usage

status_check(return_df = FALSE, error_if_unavailable = FALSE)

Arguments

return_df

This option makes the function return a data.frame object with the services and their statuses listed

error_if_unavailable

This option forces the function to throw an error in the event that one or more services are unreachable.

Value

Returns a data frame object with the services and their statuses. Is only returned if return_df = TRUE.

Note

Please note that the status at the status page is only checked at regular intervals. If you would like to know if your machine can access the serviceses, please try connection_check() as well.

See also

Other Connection checks: connection_check()

Examples

if (connection_check()) {
  status_check()

  status_check(return_df = TRUE)
}
#>  WMS - forvaltning2 and sdfekort.dk are not operational
#>  WMS - forvaltning2 and sdfekort.dk are not operational
#>              service status
#> 1           Adresser     OK
#> 2         Arkiv kort     OK
#> 3 Dataforsyningen.dk     OK
#> 4               FTPS     OK
#> 5            Gsearch     OK
#> 6 WMS - forvaltning2   Down
#> 7        sdfekort.dk   Down