read_A3json: Read 'A3' object from JSON file

View source: R/a3.R

read_A3jsonR Documentation

Read A3 object from JSON file

Description

Validation is collect-all: the document is checked in four stages and every issue in the earliest failing stage is reported at once, each with a stable code and an RFC 6901 JSON Pointer. Use validate_A3json() for a non-throwing entry point that returns the issues instead.

Usage

read_A3json(filepath, verbosity = 1L)

Arguments

filepath

Character: Path to JSON file.

verbosity

Integer: if greater than 0, print messages.

Value

A3 object.

Author(s)

EDG

Examples

a3 <- create_A3("MAEPRQEFEVMEDHAGTYGLGDRK", uniprot_id = "P10636")
tmp <- tempfile(fileext = ".json")
write_A3json(a3, tmp)
a3_read <- read_A3json(tmp, verbosity = 0L)
unlink(tmp)

rtemis.a3 documentation built on Nov. 3, 2026, 1:07 a.m.