Skip to content

Test if a provided argument is a valid resource in Vipunen API. Valid resources are fetched from the API.

valid_resource(x)

Arguments

x

character name of the resource

Value

logical TRUE/FALSE

Examples

# TRUE
valid_resource("julkaisut")
#> [1] TRUE
# FALSE
valid_resource("foobar")
#> [1] FALSE