validateFromObj function

Syntactically validates an mzQC document which is already in memory as mzQC root object, as obtained by, e.g. readMZQC().

Syntactically validates an mzQC document which is already in memory as mzQC root object, as obtained by, e.g. readMZQC().

This method is less performant than validateFromString, because it needs to convert the R object to a JSON string first.

validateFromObj(mzqc_root, verbose = TRUE)

Arguments

  • mzqc_root: An mzQC root object
  • verbose: Show extra information if validation fails

Returns

TRUE/FALSE if validation was successful/failed

Details

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

  • Maintainer: Chris Bielow
  • License: MIT + file LICENSE
  • Last published: 2025-03-23