read_stats()
can read a .json file containing statistics that was produced
using tidystats. It returns a list containing the statistics, with the
identifier as the name for each list element.
Examples
# A simple example, assuming there is a file called 'statistics.json'
if (FALSE) { # \dontrun{
statistics <- read_stats("statistics.json")
} # }
# A working example
statistics <- read_stats(
file = system.file("statistics.json", package = "tidystats")
)