R/utils.R

Defines functions text_from_github

Documented in text_from_github

#' A function to read text from github (or really any site)
#'
#' @param url URL to RAW github text file
#'
#' @details This is a helper function for getting text files from my Github repo.
#'     It is currently used in the update_rprofile function and could be used in
#'     future functions such as update_gitignore.
#'

text_from_github <- function(url){
  github.text <- readr::read_file(url)
  return(github.text)
}
mleary/learylib documentation built on Sept. 6, 2020, 9:19 p.m.