valid_resource: valid_resource

Description Usage Arguments Value Examples

View source: R/utils.R

Description

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

Usage

1

Arguments

x

character name of the resource

Value

logical TRUE/FALSE

Examples

1
2
3
4
# TRUE
valid_resource("julkaisut")
# FALSE
valid_resource("foobar")

rOpenGov/vipunen documentation built on Oct. 14, 2021, 1:32 p.m.