Title: | Get Data from the PokéAPI Service |
---|---|
Description: | Query version 2 of the RESTful PokéAPI <https://pokeapi.co/> to return information about the Pokémon game franchise, including moves, berries, items, locations, etc. |
Authors: | Matt Dray [aut, cre] |
Maintainer: | Matt Dray <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2024-11-15 04:37:11 UTC |
Source: | https://github.com/matt-dray/trapinch |
Removes all cached returns from the PokéAPI, which are stored as RDS files
at the path resolved by tools::R_user_dir("trapinch", "cache")
.
clear_cache()
clear_cache()
Nothing. Deletes cached files.
## Not run: clear_cache()
## Not run: clear_cache()
Get Data from PokeAPI: Abilities
get_ability(resource = NULL)
get_ability(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_ability("stench")
## Not run: get_ability("stench")
Get Data from PokeAPI: Berries
get_berry(resource = NULL)
get_berry(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_berry("cheri")
## Not run: get_berry("cheri")
Get Data from PokeAPI: Berry Firmnesses
get_berry_firmness(resource = NULL)
get_berry_firmness(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_berry_firmness("very-soft")
## Not run: get_berry_firmness("very-soft")
Get Data from PokeAPI: Berry Flavors
get_berry_flavor(resource = NULL)
get_berry_flavor(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_berry_flavor("spicy")
## Not run: get_berry_flavor("spicy")
Get Data from PokeAPI: Characteristics
get_characteristic(resource = NULL)
get_characteristic(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_characteristic(1)
## Not run: get_characteristic(1)
Get Data from PokeAPI: Contest Effects
get_contest_effect(resource = NULL)
get_contest_effect(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_contest_effect(1)
## Not run: get_contest_effect(1)
Get Data from PokeAPI: Contest Types
get_contest_type(resource = NULL)
get_contest_type(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_contest_type("cool")
## Not run: get_contest_type("cool")
Get Data from PokeAPI: Egg Groups
get_egg_group(resource = NULL)
get_egg_group(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_egg_group("monster")
## Not run: get_egg_group("monster")
Get Data from PokeAPI: Encounter Conditions
get_encounter_condition(resource = NULL)
get_encounter_condition(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_encounter_condition("swarm")
## Not run: get_encounter_condition("swarm")
Get Data from PokeAPI: Encounter Condition Values
get_encounter_condition_value(resource = NULL)
get_encounter_condition_value(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_encounter_condition_value("swarm-yes")
## Not run: get_encounter_condition_value("swarm-yes")
Get Data from PokeAPI: Encounter Methods
get_encounter_method(resource = NULL)
get_encounter_method(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_encounter_method("walk")
## Not run: get_encounter_method("walk")
Get Data from PokeAPI: Evolution Chains
get_evolution_chain(resource = NULL)
get_evolution_chain(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_evolution_chain(1)
## Not run: get_evolution_chain(1)
Get Data from PokeAPI: Evolution Triggers
get_evolution_trigger(resource = NULL)
get_evolution_trigger(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_evolution_trigger("level-up")
## Not run: get_evolution_trigger("level-up")
Get Data from PokeAPI: Genders
get_gender(resource = NULL)
get_gender(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_gender("female")
## Not run: get_gender("female")
Get Data from PokeAPI: Generations
get_generation(resource = NULL)
get_generation(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_generation("generation-i")
## Not run: get_generation("generation-i")
Get Data from PokeAPI: Growth rates
get_growth_rate(resource = NULL)
get_growth_rate(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_growth_rate("slow")
## Not run: get_growth_rate("slow")
Get Data from PokeAPI: Items
get_item(resource = NULL)
get_item(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_item("master-ball")
## Not run: get_item("master-ball")
Get Data from PokeAPI: Item Attributes
get_item_attribute(resource = NULL)
get_item_attribute(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_item_attribute("countable")
## Not run: get_item_attribute("countable")
Get Data from PokeAPI: Item Categories
get_item_category(resource = NULL)
get_item_category(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_item_category("stat-boosts")
## Not run: get_item_category("stat-boosts")
Get Data from PokeAPI: Item Fling Effects
get_item_fling_effect(resource = NULL)
get_item_fling_effect(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_item_fling_effect("badly-poison")
## Not run: get_item_fling_effect("badly-poison")
Get Data from PokeAPI: Item Pockets
get_item_pocket(resource = NULL)
get_item_pocket(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_item_pocket("misc")
## Not run: get_item_pocket("misc")
Get Data from PokeAPI: Languages
get_language(resource = NULL)
get_language(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_language("ja")
## Not run: get_language("ja")
Get Data from PokeAPI: Locations
get_location(resource = NULL)
get_location(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_location("canalave-city")
## Not run: get_location("canalave-city")
Get Data from PokeAPI: Location Areas
get_location_area(resource = NULL)
get_location_area(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_location_area("canalave-city-area")
## Not run: get_location_area("canalave-city-area")
Get Data from PokeAPI: Machines
get_machine(resource = NULL)
get_machine(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_machine(1)
## Not run: get_machine(1)
Get Data from PokeAPI: Moves
get_move(resource = NULL)
get_move(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_move("pound")
## Not run: get_move("pound")
Get Data from PokeAPI: Move Ailments
get_move_ailment(resource = NULL)
get_move_ailment(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_move_ailment("paralysis")
## Not run: get_move_ailment("paralysis")
Get Data from PokeAPI: Move Battle Styles
get_move_battle_style(resource = NULL)
get_move_battle_style(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_move_battle_style("attack")
## Not run: get_move_battle_style("attack")
Get Data from PokeAPI: Move Categories
get_move_category(resource = NULL)
get_move_category(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_move_category("ailment")
## Not run: get_move_category("ailment")
Get Data from PokeAPI: Move Damage Classes
get_move_damage_class(resource = NULL)
get_move_damage_class(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_move_damage_class("status")
## Not run: get_move_damage_class("status")
Get Data from PokeAPI: Move Learn Methods
get_move_learn_method(resource = NULL)
get_move_learn_method(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_move_learn_method("level-up")
## Not run: get_move_learn_method("level-up")
Get Data from PokeAPI: Move Targets
get_move_target(resource = NULL)
get_move_target(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_move_target("specific-move")
## Not run: get_move_target("specific-move")
Get Data from PokeAPI: Natures
get_nature(resource = NULL)
get_nature(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_nature("bold")
## Not run: get_nature("bold")
Get Data from PokeAPI: Pal Park Areas
get_pal_park_area(resource = NULL)
get_pal_park_area(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pal_park_area("forest")
## Not run: get_pal_park_area("forest")
Get Data from the PokéAPI Service
get_pokeapi(endpoint, resource = NULL, ext = NULL)
get_pokeapi(endpoint, resource = NULL, ext = NULL)
endpoint |
Character. The name of the endpoint to query. This includes
categories such as |
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
ext |
Character. Further extension to the provided endpoint and
resource. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokeapi("pokemon", "bulbasaur")
## Not run: get_pokeapi("pokemon", "bulbasaur")
Get Data from PokeAPI: Pokeathlon Stats
get_pokeathlon_stat(resource = NULL)
get_pokeathlon_stat(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokeathlon_stat("speed")
## Not run: get_pokeathlon_stat("speed")
Get Data from PokeAPI: Pokedexes
get_pokedex(resource = NULL)
get_pokedex(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokedex("kanto")
## Not run: get_pokedex("kanto")
Get Data from PokeAPI: Pokemon
get_pokemon(resource = NULL)
get_pokemon(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokemon("clefairy")
## Not run: get_pokemon("clefairy")
Get Data from PokeAPI: Pokemon Colors
get_pokemon_color(resource = NULL)
get_pokemon_color(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokemon_color("black")
## Not run: get_pokemon_color("black")
Get Data from PokeAPI: Pokemon Forms
get_pokemon_form(resource = NULL)
get_pokemon_form(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokemon_form("arceus-bug")
## Not run: get_pokemon_form("arceus-bug")
Get Data from PokeAPI: Pokemon Habitats
get_pokemon_habitat(resource = NULL)
get_pokemon_habitat(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokemon_habitat("cave")
## Not run: get_pokemon_habitat("cave")
Get Data from PokeAPI: Pokemon Location Areas
get_pokemon_location_areas(resource)
get_pokemon_location_areas(resource)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokemon_encounters("bulbasaur")
## Not run: get_pokemon_encounters("bulbasaur")
Get Data from PokeAPI: Pokemon Shapes
get_pokemon_shape(resource = NULL)
get_pokemon_shape(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokemon_shape("ball")
## Not run: get_pokemon_shape("ball")
Get Data from PokeAPI: Pokemon Species
get_pokemon_species(resource = NULL)
get_pokemon_species(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_pokemon_species("wormadam")
## Not run: get_pokemon_species("wormadam")
Get Data from PokeAPI: Regions
get_region(resource = NULL)
get_region(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_region("kanto")
## Not run: get_region("kanto")
Get Data from PokeAPI: Stats
get_stat(resource = NULL)
get_stat(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_stat("attack")
## Not run: get_stat("attack")
Get Data from PokeAPI: Super Contest Effects
get_super_contest_effect(resource = NULL)
get_super_contest_effect(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_super_contest_effect(1)
## Not run: get_super_contest_effect(1)
Get Data from PokeAPI: Types
get_type(resource = NULL)
get_type(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_type("ground")
## Not run: get_type("ground")
Get Data from PokeAPI: Version
get_version(resource = NULL)
get_version(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_version("red")
## Not run: get_version("red")
Get Data from PokeAPI: Version Groups
get_version_group(resource = NULL)
get_version_group(resource = NULL)
resource |
Character or numeric. The name or ID of the resource to
return from the named endpoint. Most 'get' functions can accept either,
but some only accept an ID. Defaults to |
Note that the 'trapinch' package uses version 2 of the API. See
the PokéAPI documentation for more
information and a full list of endpoints and resources. You can also view
the built-in resource_lookups
data for this information.
Results are cached.
A list. The exact contents depend on the endpoint and resource being requested
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.
## Not run: get_version_group("red-blue")
## Not run: get_version_group("red-blue")
IDs, names and URLs for each resource from each endpoint available from the
PokéAPI. These can be passed used in each of the package's get_*()
functions.
resource_lookups
resource_lookups
A list of length 48. Each element is a dataframe that represents the
possible resources for each PokéAPI endpoint. The dataframes have
columns id
(integer), name
(character) where relevant and
corresponding url
(character). The number of rows in each
dataframe is equal to the total number of resources available for the
given endpoint.
API by PokéAPI https://pokeapi.co/. Data from The Pokémon Company.