read_json_logs: Read a directory containing JSON logs

Description Usage Arguments Value Examples

View source: R/read.R

Description

Read a directory containing JSON logs

Usage

1

Arguments

path

Path of the directory containing JSON files or a vector of path to JSON files.

Value

a list of data.table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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)

karimelghazouly/shinylogs_modified documentation built on Jan. 9, 2021, 12:37 a.m.