check_godata_url: Check if the provided Go.Data URL is valid

View source: R/check_godata_url.R

check_godata_urlR Documentation

Check if the provided Go.Data URL is valid

Description

A function to check whether the provided URL is valid. This is a housekeeping function used in many of the other godataR functions.

Usage

check_godata_url(url, success_code = 200)

Arguments

url

Insert the base URL for your instance of Go.Data here. Don't forget the forward slash "/" at end!

success_code

A numeric specifying which code is returned by the API when successfully returning the status code. Default is 200.

Value

Boolean, where TRUE indicates a valid URL.

Examples

## Not run: 
url <- "https://MyGoDataServer.com/"
check_godata_url(url = url)

## End(Not run)

WorldHealthOrganization/godataR documentation built on May 21, 2023, 11:30 a.m.