R/utils_remote.R
remote_exists.Rd
Determines whether a remote file exists by sending a HEAD request to the specified URL and checking the HTTP status code.
HEAD
remote_exists(url)
Character string specifying the URL of the remote file.
A logical value: TRUE if the remote file exists (HTTP status 200), FALSE otherwise.
TRUE
FALSE
if (FALSE) { # \dontrun{ url <- "https://www2.census.gov/geo/tiger/GENZ2024/shp/cb_2024_us_state_20m.zip" remote_exists(url) } # }