prereg_next_item {preregr}R Documentation

Show the next item to specify content for

Description

This function shows the next item (or items) in a (pre)registration for which to specify content (searching through all sections or through a selection of sections).

Usage

prereg_next_item(x, nrOfItems = 1, section = NULL)

Arguments

x

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

nrOfItems

The number of items to complete to show.

section

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

Value

x, invisibly

Examples

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

### Check next item
examplePrereg_1 |>
  preregr::prereg_next_item();

### Specify content for this item
examplePrereg_1 <-
  preregr::prereg_specify(
    examplePrereg_1,
    funding = paste0(
      "No funding. There's never any ",
      "funding for this kind of stuff."
    )
  );

### Get the next three items
preregr::prereg_next_item(
  examplePrereg_1,
  nrOfItems = 3
);


[Package preregr version 0.2.9 Index]