Skip to contents

Returns the configurable limits applied while discovering candidates. The candidate cap bounds how many distinct guessed-path candidates are evaluated against a single site root (after deduplication), so a large catalog can never trigger an unbounded burst of requests.

Usage

discovery_limits(max_candidates = getOption("sitemapr.max_candidates", 50L))

Arguments

max_candidates

Maximum number of distinct candidates to evaluate. Resolves from the argument, then getOption("sitemapr.max_candidates"), then the default of 50.

Value

A named list of limits with coerced types.

See also

fetch_limits() and index_limits() for the other bound constructors, and sitemap_tree() which accepts discovery limits.

Examples

discovery_limits()
#> $max_candidates
#> [1] 50
#> 
discovery_limits(max_candidates = 10)
#> $max_candidates
#> [1] 10
#>