skip_if_over_rate_limit: Skip test if over Github API rate limit

View source: R/helpers-for-tests.R

skip_if_over_rate_limitR Documentation

Skip test if over Github API rate limit

Description

This is based on a function of the same name from the remotes package. Note, this uses no token, so it is checking the public rate limit. This is appropriate because this package has no interface for passing in a token, so it will always be hitting the public API.

Usage

skip_if_over_rate_limit(by = 5)

Arguments

by

if less than this number of requests are left before hitting the rate limit, skip the test


metrumresearchgroup/rbabylon documentation built on April 21, 2024, 3:26 a.m.