Check if the input is url e.g. http:// or ftp://

is_url(path, protocols = c("http", "https", "ftp", "ftps", "fttp", "fttps"))

Arguments

path

Path to local file or remote URL.

protocols

URL protocols to search for.

Examples

path <- "https://github.com/RajLabMSSM/echolocatoR/raw/master/NEWS.md"
out <- is_url(path=path)