import_yaml_or_json: Convert a (pre)registration specification from YAML or JSON

yaml_to_prereg_specR Documentation

Convert a (pre)registration specification from YAML or JSON

Description

Convert a (pre)registration specification from YAML or JSON

Usage

yaml_to_prereg_spec(x)

Arguments

x

The YAML or JSON as character vector, or a path to a file containing the YAML or JSON.

Value

The imported object.

Examples

### Get path to example file
examplePreregFile <-
  system.file(
    "extdata",
    "preregr-spec-example1.yml",
    package = "preregr"
  );

### Load it and show which items are completed
preregr::yaml_to_prereg_spec(
  examplePreregFile
) |>
  preregr::prereg_show_item_completion();

preregr documentation built on May 31, 2023, 7:10 p.m.