validate_state: validate state parameter

View source: R/assertions.R

validate_stateR Documentation

validate state parameter

Description

validate state parameter

Usage

validate_state(state)

Arguments

state

The state parameter must be exactly one of 'track', 'context' or 'off'.

Value

A boolean if the parameter matches the Spotify Web API parameter range.


spotifyr documentation built on Dec. 28, 2022, 2:08 a.m.