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

check_oz_lonlat(longitude, latitude)

Arguments

longitude

user provided numeric value as decimal degrees

latitude

user provided numeric value as decimal degrees

Value

No return value, 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)

 # Error, in Northern Hemisphere
 check_oz_lonlat(longitude = 115.86, latitude = 31.95)
#> Error: Please check your latitude, `31.95`, value to be sure it is valid for Australian data.