read_json_logs: Read a directory containing JSON logs

View source: R/read.R

read_json_logsR Documentation

Read a directory containing JSON logs

Description

Read a directory containing JSON logs

Usage

read_json_logs(path)

Arguments

path

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

Value

a list of data.table

Examples


# 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)


shinylogs documentation built on April 18, 2022, 5:05 p.m.