get_all_islands: Get all islands with pagination support

View source: R/islands.R

get_all_islandsR Documentation

Get all islands with pagination support

Description

Get all islands with pagination support

Usage

get_all_islands(max_pages = 10, page_size = 100)

Arguments

max_pages

Maximum number of pages to fetch (default: 10)

page_size

Number of islands per page (default: 100)

Value

A tibble with all island data

Examples

# Example showing expected output structure
mock_all_islands <- tibble::tibble(
  code = c("1234-5678-9012", "2345-6789-0123"),
  title = c("Island 1", "Island 2"),
  page_fetched = c(1, 1)
)
# In practice, this would aggregate results from multiple API pages

## Not run: 
# Get all islands (up to 1000)
all_islands <- get_all_islands()

# Get more islands
many_islands <- get_all_islands(max_pages = 20)

## End(Not run)

fortniteR documentation built on Aug. 8, 2025, 7:38 p.m.