R/read.r

Defines functions read_msf

Documented in read_msf

#' Read MySportsFeeds JSON from disk
#'
#' @param path path to json file
#' @export
read_msf <- function(path) {
  #assertive.files::assert_all_are_existing_files(path)
  stopifnot(file.exists(path))
  jsonlite::read_json(path, simplifyVector = TRUE, simplifyMatrix = FALSE,
                      simplifyDataFrame = FALSE)

}
zamorarr/msf documentation built on May 3, 2019, 9:01 p.m.