R/user_agent.R

Defines functions set_user

# set user agent
set_user <- function(config) {
  if (length(config) == 0 | length(config$options$`user-agent`) == 0) {
    ua <- user_agent("http://github.com/robertmyles/tidyRSS")
    return(ua)
  } else {
    return(config)
  }
}
RobertMyles/tidygeoRSS documentation built on July 26, 2020, 12:50 p.m.