url_exists: Test if a URL works/exists

View source: R/NMFSReports.R

url_existsR Documentation

Test if a URL works/exists

Description

Test if a URL works/exists

Usage

url_exists(x, non_2xx_return_value = FALSE, quiet = FALSE, ...)

Arguments

x

a single URL

non_2xx_return_value

what to do if the site exists but the HTTP status code is not in the ⁠2xx⁠ range. Default is to return FALSE.

quiet

if not FALSE, then every time the non_2xx_return_value condition arises a warning message will be displayed. Default is FALSE.

...

other params (timeout() would be a good one) passed directly to httr::HEAD() and/or httr::GET()


EmilyMarkowitz-NOAA/NMFSReports documentation built on March 26, 2023, 1:08 a.m.