validateFromString: Syntactically validates an mzQC document which is already in...

View source: R/validator.R

validateFromStringR Documentation

Syntactically validates an mzQC document which is already in memory as JSON string. e.g. the string "{ mzQC : {}}"

Description

If the string object passed into this function contains multiple elements (length > 1). then they will be concatenated using '\n' before validation.

Usage

validateFromString(JSON_string, verbose = TRUE)

Arguments

JSON_string

A string which contains JSON (multiple lines allowed)

verbose

Show extra information if validation fails

Details

The returned TRUE/FALSE has additional attributes in case of errors. Use attributes(result) to access them.

Value

TRUE/FALSE if validation was successful/failed


rmzqc documentation built on May 29, 2024, 12:06 p.m.