Skip to contents

Checks user-provided longitude and latitude values that they fall in Australia. Errors if any values do not.

Usage

check_oz_lonlat(longitude, latitude)

Arguments

longitude

user provided numeric value as decimal degrees

latitude

user provided numeric value as decimal degrees

Value

An invisible NULL, called for side-effects. Errors if the latitude or longitude values are outside of Australia.

Examples

# No error, Perth, WA
check_oz_lonlat(longitude = 115.86, latitude = -31.95)

if (FALSE) { # \dontrun{
# Error, in northern hemisphere
check_oz_lonlat(longitude = 115.86, latitude = 31.95)
} # }