R/isUrl.R

###########################################################################/**
# @RdocDefault isUrl
#
# @title "Checks if one or several pathnames is URLs"
#
# \description{
#  @get "title".
# }
#
# @synopsis
#
# \arguments{
#   \item{pathname}{A @character @vector.}
#   \item{...}{Not used.}
# }
#
# \value{
#  Returns a @logical @vector of either @TRUE or @FALSE.
# }
#
# @author
#
# @keyword IO
# @keyword programming
#*/###########################################################################
setMethodS3("isUrl", "default", function(pathname, ...) {
  res <- hasUrlProtocol(pathname, ...)
  res[is.na(res)] <- FALSE
  res
})
HenrikBengtsson/R.utils documentation built on March 7, 2024, 9:37 a.m.