The function can generate a URL based on a base URL and as many as TGVE API variables provided to the function.

get_url(base = "http://127.0.0.1:8000", ...)

Arguments

base

character URL defaults to `http://127.0.0.1:8000`

...

any or all of the TGVE API variables to replace/add values to.

Value

character URL generated from `base` and `tgver::`

Examples

{
url = get_url(dark="false")
url == "http://127.0.0.1:8000?dark=false"
url
url = get_url()
url
}
#> [1] "http://127.0.0.1:8000"