R/util.R

Defines functions clean.url

# Ensure that all feed URLs begin with http:// or https://.
#
clean.url <- function(url) {
  ifelse(!grepl("^https?://", url), paste("http://", url, sep = ""), url)
}

# locate.link <- function(text) {
#   grepl("^https?://", text)
# }
# 
# filter.link <- function(text) {
#   text[locate.link(text)]
# }

Try the feedeR package in your browser

Any scripts or data that you put into this service are public.

feedeR documentation built on Oct. 23, 2020, 5:53 p.m.