Skip to contents

Load a model by filename prefix

Usage

load_form_model(name, directory)

Arguments

name

Prefix of <name>-form.yaml, starting with a letter and containing only letters, digits, underscores, dots or hyphens.

directory

Directory containing the file.

Value

A checked form_model; see read_form_model() for errors.

Examples

directory <- system.file("examples", package = "form.model")
load_form_model("survey", directory)
#> <form_model> survey @ 2026.2 (schema 1.0.0)
#> 29 fields; 5 sheets