form_create {preregr} | R Documentation |
Create a new (pre)registration form
Description
You can use this function to create a new (pre)registration form.
The "Creating a (pre)registration form" vignette explains how this works.
That is available at
https://preregr.opens.science/articles/creating_prereg_form.html
or can be shown by running vignette("creating_prereg_form",
package = "preregr")
.
Usage
form_create(
title,
version,
author = NA,
date = format(Sys.Date(), "%Y-%m-%d"),
...
)
Arguments
title |
The form's title |
version |
The form's version. If there is only one version and the
creators do not plan to release future version, the recommendation is to
set the version to |
author |
The authors of the form |
date |
The date the form was created |
... |
Additional field-content pairs to specify arbitrary metadata. |
Value
The preregr
form object prefilled with some examples.
Examples
exampleForm <-
preregr::form_create(
title = "Example form",
version = "0.1.0"
);
### Show the form summary
exampleForm;