is_json: Check that a file is JSON

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Checks whether a file is a JSON file.

Usage

1

Arguments

file

a filepath

Value

a boolean

Examples

1
2
3
4
## Not run: 
is_json("file.json")

## End(Not run)

daiR documentation built on June 11, 2021, 5:16 p.m.