paginate_lazy: Create Lazy Pagination Iterator

View source: R/pagination.R

paginate_lazyR Documentation

Create Lazy Pagination Iterator

Description

Creates an iterator that fetches pages on demand.

Usage

paginate_lazy(fetch_fn, page_size = 100)

Arguments

fetch_fn

A function that takes page and size arguments.

page_size

Number of items per page. Default 100.

Value

An iterator object with next_page() and has_more() methods.


omophub documentation built on Dec. 17, 2025, 5:10 p.m.