Learn R Programming

scryr (version 1.0.0)

autocomplete_name: Autocomplete the name of a card

Description

Returns a string vector of up to 20 full English card names that could be autocompletions of the given name argument.

Usage

autocomplete_name(name, include_extras = FALSE)

Arguments

name

A string with a card's name (or part of it). See details.

include_extras

If TRUE, extra cards (tokens, planes, etc) will be included.

Value

A string vector.

Details

The names are sorted with the nearest match first, highly favoring results that begin with your given string.

Spaces, punctuation, and capitalization are ignored.

If name is less than 2 characters long, or if no names match, the vector will contain 0 elements (instead of returning any errors).

References

https://scryfall.com/docs/api/cards/autocomplete

Examples

Run this code
# NOT RUN {
# Get all related card names
autocomplete_name("falken")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab