compile_data: Compile a data file into a JavaScript file

View source: R/assets-to_json.R

compile_dataR Documentation

Compile a data file into a JavaScript file

Description

Compile a data file into a JavaScript file

Usage

compile_data(input, output = tempfile(), ...)

Arguments

input

A character string; the path to the input file.

output

A character string; the path to the output file.

...

Extra arguments to be passed to to_json.

Examples

file <- system.file("test_files/test_csv.csv", package = "sketch")
readLines(compile_data(file))


kcf-jackson/sketch documentation built on Feb. 22, 2024, 1:44 p.m.