Configure default WAStD settings
wastdr_setup(
wastd_url = get_wastd_url(),
api_url = get_wastdr_api_url(),
api_token = NULL,
api_un = get_wastdr_api_un(),
api_pw = get_wastdr_api_pw()
)
A WAStD URL (optional), default: "https://wastd.dbca.wa.gov.au"
A WAStD API URL (optional), default: "https://wastd.dbca.wa.gov.au/api/1/"
A WAStD API token, optionally leading with "Token " (character)
Alternatively, a WAStD API username (character)
The password to the WAStD username (character)
wastdr_setup
sets WAStD API connection details. wastdr
's
functions default to use the default URL, but require an API key to work.
Other helpers:
absolute_angle()
,
add_dates()
,
datetime_as_isoweek()
,
datetime_as_seasonweek()
,
datetime_as_season()
,
datetime_as_turtle_date()
,
exclude_training_species()
,
exclude_training_surveys()
,
extract_possibly()
,
fdate_as_tdate()
,
filter_missing_site()
,
filter_missing_survey()
,
filter_surveys_missing_end()
,
filter_surveys_requiring_qa()
,
filter_wastd_season()
,
get_more()
,
gj_linestring_to_st_linestring()
,
httpdate_as_gmt08_turtle_date()
,
httpdate_as_gmt08()
,
httpdate_as_season()
,
humanize()
,
join_tsc_sites()
,
leaflet_basemap()
,
map_chr_hack()
,
mean_bearing()
,
mis_bearing()
,
odkc_works()
,
read_table()
,
sentencecase()
,
sf_as_tbl()
,
tdate_as_fdate()
,
tracks_as_geojson()
,
tun()
,
urlize()
,
verify_odkc_turtledata()
,
verify_wamtram_data()
,
verify_wastd_data()
,
wastd_works()
,
wastdr_msg_abort()
,
wastdr_msg_info()
,
wastdr_msg_noop()
,
wastdr_msg_success()
,
wastdr_msg_warn()
,
wastdr_settings()
# WAStD users with a DBCA account can access their WAStD authentication
# token on their profile page on WAStD:
wastdr_setup(api_token = "wastd_token")
# Non-DBCA users will have been given a WAStD username and password:
wastdr_setup(
api_un = "wastd_username",
api_pw = "wastd_password"
)
# Not specifying the default WAStD API URL will reset the WAStD URL to its
# default "https://wastd.dbca.wa.gov.au/api/1/":
if (FALSE) {
wastdr_setup(api_token = "c12345asdfqwer")
}