Skip to contents

Reads one local JSON file, the one you name, within the format's input limits. URLs and wildcards are not expanded. The checked result includes its family and face kits; keep the source file too if you want to edit the character later.

Usage

mascot_read_character(path)

Arguments

path

A non-empty string naming one local JSON file. NULL is not accepted.

Value

A checked mascot_character_data object, visibly.

Details

File problems inherit mascot_error_file and mascot_error, with the exact supplied path, operation = "read" and a stable code. Content and argument diagnostics are described in mascot_check_character().

Experimental

Experimental Its arguments, results and diagnostics may change in a later release.

Examples

path <- system.file("examples", "characters", "study_bot.json", package = "mascot")
bot <- mascot_read_character(path)