R/prereg_show_item_content.R
prereg_show_item_content.Rd
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)
The (pre)registration object (as produced by a call to
prereg_initialize()
).
The section(s) to show; pass NULL
(the default) to show
everything.
x, invisibly
### 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]