check_rate_limit: Find requests remaining and reset time

View source: R/check.R

check_rate_limitR Documentation

Find requests remaining and reset time

Description

Source: copied from httr vignette "Best practices for API packages" by Hadley Wickham

Usage

check_rate_limit(ref)

Arguments

ref

Any repository reference being used. Repository information is stripped out and only authentication credentials are used to determine the rate limit.

Value

Informative message on requests remaining and reset time

See Also

Other check: check_internet()

Examples

## Not run: 
experigit <- create_repo_ref('emilyriederer', 'experigit')
check_rate_limit(experigit)

## End(Not run)

projmgr documentation built on May 29, 2024, 5 a.m.