read_json_logs {shinylogs} | R Documentation |
Read a directory containing JSON logs
read_json_logs(path)
path |
Path of the directory containing JSON files or a vector of path to JSON files. |
a list
of data.table
# Read all JSON in a directory
path_directory <- system.file("extdata/json", package = "shinylogs")
logs <- read_json_logs(path = path_directory)
# Read a single file
single_file <- dir(
path = system.file("extdata/json", package = "shinylogs"),
full.names = TRUE
)[1]
logs <- read_json_logs(path = single_file)