MyNixOS website logo
Description

Specify (Pre)Registrations and Export Them.

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'.

preregr 📦

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

CRANstatus

Dependencystatus

Pipelinestatus

Downloads lastmonth

Totaldownloads

Coveragestatus

The pkgdown website for this project is located at https://preregr.opens.science.

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.

Installation

You can install the released version of preregr from CRAN with:

install.packages('preregr');

You can install the development version of preregr from GitLab with:

remotes::install_gitlab('r-packages/preregr');

(assuming you have remotes installed; otherwise, install that first using the install.packages function)

You can install the cutting edge development version (own risk, don’t try this at home, etc) of preregr from GitLab with:

remotes::install_gitlab('r-packages/preregr@dev');

Getting started

There are currently seven vignettes introducing preregr:

Included (pre)registration forms

At the moment, five forms come pre-installed with preregr:

Of course, it would be great to add more! Check out the vignette about specifing a (pre) registration form using a spreadsheet and have a look at the specifications of these examples (linked to from that vignette) to get started.

Once you’re happy with your form, contact Gjalt-Jorn through, for example, [email protected] or https://twitter.com/matherion - or better yet, if you’re familiar with Git, add your form yourself to this file and submit a merge request (to the dev branch).

Future Hopes and plans

  • Add more (pre)registration forms to the package
  • Properly set the validations and value templates for the currently included forms
  • Add a way to specify ‘multiple choice’ (as opposed to ‘single choice’) items
  • Add a way to specify an ‘other’ option for items
  • Allow specifying content for an item multiple times (as required by the PRP-QUANT form)
  • Explore whether it’s possible to create a Shiny app that imports a form specification, lets people complete it (i.e. show an actual form), and lets them download the produced HTML file
  • Improve the currently very rudimentary preregr::form_to_rmd_template() function to create a R Markdown template (cf the prereg package; CRAN link)
  • Integrate with related packages, e.g.:
    • The Workflow for Open Reproducible Code in Science (worcs)
    • the Scienceverse (scienceverse)
    • the Reproducible Open Coding Kit (rock)

Credits

The logo contains the Center for Open Science preregistration badge, licensed under CC-BY by David Mellor, and originally created by …

Metadata

Version

0.2.9

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows