split_into_chunks: Split the fetch into multiple chunks

Description Usage Arguments Value

View source: R/helpers.R

Description

A helper function for splitting the fetch into chunks that the api accepts.

Usage

1
split_into_chunks(n_notices, batch_size = 1000L)

Arguments

n_notices

The number of notices to be fetched

batch_size

The desired batch size, the current default is 1000, which is the limit of the current API.

Value

An integer vector that contains the number of elements to skip in each query.


hansel-oy/hilma documentation built on Feb. 20, 2020, 3:20 a.m.