#' This file processes the league_lookup.json and sport_lookup.json files and
#' saves them to the sysdata.rda file in the R/ subdirectory. A .rda file is
#' more efficient for R to load within the package. Please consult the R/data.R
#' file for descriptions of the datasets.
#'
#' NOTE: When adding datasets, be sure the working directory is set to sportyR/
#' and that this file is sourced on saving.
surface_dimensions <- jsonlite::fromJSON(
txt = "data-raw/surface-dimensions.json"
)
usethis::use_data(
surface_dimensions,
overwrite = TRUE,
internal = TRUE
)
rm(list = ls())
devtools::load_all()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.