R/get_title.R

Defines functions get_title

Documented in get_title

#' Gets title of stream
#' 
#' @param path
#' @return str
get_title <- function(path) {
  local <- stringr::str_split(stringi::stri_reverse(path), "/", 3)[[1]][3] %>%
    stringi::stri_reverse() %>%
    glue::glue("/README.md")
  readLines(local, n = 1)
}
badbayesian/twitchNLP documentation built on Dec. 19, 2021, 6:38 a.m.