is_web_path {xfun} | R Documentation |
Check if a path starts with ‘http://’ or ‘https://’ or ‘ftp://’ or ‘ftps://’.
is_web_path(x)
x |
A vector of paths. |
A logical vector.
xfun::is_web_path("https://www.r-project.org") # TRUE
xfun::is_web_path("www.r-project.org") # FALSE