sf_rel_nofollow: Detect 'nofollow' in a rel attribute

View source: R/screaming_frog_contract.R

sf_rel_nofollowR Documentation

Detect 'nofollow' in a rel attribute

Description

Tests whether each value of a link's rel attribute contains the nofollow token. Values are lowercased and split on commas and whitespace, so "ugc nofollow" and "nofollow,ugc" both count.

Usage

sf_rel_nofollow(x)

Arguments

x

A vector (typically character) of rel attribute values.

Value

A logical vector the same length as x: TRUE when the nofollow token is present, FALSE when it is not, and NA for blank strings or NA input.

See Also

Other Screaming Frog toolkit: sf_container_from_path(), sf_contract(), sf_graph_eligible(), sf_normalize_position(), sf_parse_follow(), sf_read_input(), sf_region_from_path()

Examples

sf_rel_nofollow(c("nofollow", "ugc nofollow", "sponsored", "", NA))

pagerankr documentation built on Oct. 1, 2026, 5:09 p.m.