Learn R Programming

fortniteR (version 0.1.0)

get_all_islands: Get all islands with pagination support

Description

Get all islands with pagination support

Usage

get_all_islands(max_pages = 10, page_size = 100)

Value

A tibble with all island data

Arguments

max_pages

Maximum number of pages to fetch (default: 10)

page_size

Number of islands per page (default: 100)

Examples

Run this code
# 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

if (FALSE) {
# Get all islands (up to 1000)
all_islands <- get_all_islands()

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

Run the code above in your browser using DataLab