j_save: Save file Function

Description Usage Arguments Examples

View source: R/save.R

Description

Used to save data to a file in the working directory using UTF-8 encoding.

Usage

1
j_save(data, filename)

Arguments

data

The data to be saved

filename

A character string representing the name of the file.

Examples

1
2
3
4
# Write a JSON string to a UTF-8 encoded file

data <- "[{msg: 'Hello R users!', type: 'example'}]"
j_save(data, 'data.json')

msantelices/json64 documentation built on Nov. 19, 2019, 11:55 p.m.