valid_url: helper function

View source: R/get_shapes.R

valid_urlR Documentation

helper function

Description

check whether a url is valid

Usage

valid_url(url_in, t = 2)

Arguments

url_in

character value of the website to be checkd for validity

t

timeout time in seconds.

Value

logic value: TRUE for valid connection, FALSE for not

Source

https://stackoverflow.com/questions/52911812/check-if-url-exists-in-r

Examples

 valid_url("http://www.stat.iastate.edu")
 valid_url("http://www.not/a/good/url.de")

Stat585-at-ISU/worldle documentation built on April 4, 2023, 5:45 a.m.