bad_url: Helper function to check urls

View source: R/check_wiki_links.R

bad_urlR Documentation

Helper function to check urls

Description

Check whether URL(s) return a HTTP error, indicating a broken link. Note that this uses curl under the hood, which may give timeout errors and therefore false positives for some links that are valid but take too long to resolve.

Usage

bad_url(url)

Arguments

url

A character vector of one or more URLs.

Value

Result vector of same size with values "bad" or "ok".


nf-osi/nfportalutils documentation built on Feb. 26, 2024, 1:05 p.m.