preregr0.2.9 package

Specify (Pre)Registrations and Export Them Human- And Machine-Readably

bipiped_value_to_vector

Convert a "bipiped" value (or vector of values) to a vector

cat0

Concatenate to screen without spaces

constructingJustifications

Programmatically constructing justifier elements

export_to_yaml_or_json

Convert a (pre)registration specification to YAML or JSON

first_valid_value

Select the first valid value

form_add

Add an instruction, section, or item to a (pre)registration form

form_create

Create a new (pre)registration form

form_fromSpreadsheet

Import a (pre)registration form specification from a spreadsheet

form_knit

Knit a (pre)registration form into an Rmd file

form_show

Show a (pre)registration form

form_to_html

Convert a (pre)registration form to html

form_to_xlsx

Export a (pre)registration form to an Excel spreadsheet

forms

Included (pre)registration forms

heading

Print a heading

import_from_html

Import a (pre)registration specification from JSON embedded in HTML

import_yaml_or_json

Convert a (pre)registration specification from YAML or JSON

number_as_xl_date

Convert a number to a date using Excel's system

opts

Options for the preregr package

prereg_initialize

Initialize a (pre)registration

prereg_justify

Justify (and optionally specify) the content for one or more (pre)regi...

prereg_knit_item_content

Knit the specified content for the items in a (pre)registration into a...

prereg_next_item

Show the next item to specify content for

prereg_show_item_completion

Show which items in a (pre)registration have been completed

prereg_show_item_content

Show the specified content for the items in a (pre)registration

prereg_spec_to_html

Convert a (pre)registration specification to html

prereg_spec_to_pdf

Convert a (pre)registration specification to PDF

prereg_specify

Specify the content for one or more (pre)registration items

preregr-package

preregr: Specify (Pre)Registrations and Export Them Human- And Machine...

randomSlug

Generate a random slug

rbind_df_list

Bind lots of dataframes together rowwise

rbind_dfs

Simple alternative for rbind.fill or bind_rows

read_spreadsheet

Convenience function to read spreadsheet-like files

repeatStr

Repeat a string a number of times

rmd_templates

Convert a (pre)registration form to an R Markdown template

serialization

"Serialize" a data frame or (pre)registration specification

serialized_data_to_dfs

In an object imported from YAML or JSON, convert some elements to data...

validate_value

Validate a value

vecTxt

Easily parse a vector into a character value

wrapVector

Wrap all elements in a vector

Preregistrations, or more generally, registrations, enable explicit timestamped and (often but not necessarily publicly) frozen documentation of plans and expectations as well as decisions and justifications. In research, preregistrations are commonly used to clearly document plans and facilitate justifications of deviations from those plans, as well as decreasing the effects of publication bias by enabling identification of research that was conducted but not published. Like reporting guidelines, (pre)registration forms often have specific structures that facilitate systematic reporting of important items. The 'preregr' package facilitates specifying (pre)registrations in R and exporting them to a human-readable format (using R Markdown partials or exporting to an 'HTML' file) as well as human-readable embedded data (using 'JSON'), as well as importing such exported (pre)registration specifications from such embedded 'JSON'.

  • Maintainer: Gjalt-Jorn Peters
  • License: GPL (>= 3)
  • Last published: 2023-05-05