This function shows the specified content for the items in a (pre)registration, or in one or more sections.

prereg_show_item_content(x, section = NULL)

Arguments

x

The (pre)registration object (as produced by a call to prereg_initialize()).

section

The section(s) to show; pass NULL (the default) to show everything.

Value

x, invisibly

Examples

### Load an example (pre)registration specification
data("examplePrereg_1", package = "preregr");

### Show the item content for the "metadata" section
examplePrereg_1 |>
  preregr::prereg_show_item_content(
    section="metadata"
  );
#> 
#> ── Specified item content in (pre)registration specification ───────────────────
#> 
#>  Form: Inclusive General-Purpose Registration Form
#>  Version: 1.1
#> 
#> ── Section: Metadata ──
#> 
#>  Discipline [discipline]: Thaumatology
#>  Title [title]: Cabbages cast in moderation: a comparative analysis
#>  Author(s) / contributor(s) [authors]: Littlebottom, C., Dibbler, C., & Aching, T.
#>  Tasks and roles [tasks_and_roles]
#>  Funding [funding]
#>  Conflicts of interest [cois]