R/utils.R
nwd_check_if_exists.Rd
Check if corresponding information for a given domain exists for a given data type and a given time period
nwd_check_if_exists( domain, type = "homepage", language = NULL, since = Sys.Date() - 91, simplify = TRUE )
domain | A domain name (e.g. "example.com"). |
---|---|
type | Type of file to check, defaults to "homepage". Curent alternative options: "screenshots" and "ads". |
since | A date. `nwd_check_if_exists()` returns TRUE only if the given link has been downloaded or (failed to download) after the given date. |
If `simplify` is TRUE, it returns a logical vector of length 1, either TRUE or FALSE. If `simplify == FALSE`, it returns a data frame with details on the availability of files related to the given domain.