knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of pipeline is to generate and process machine-readable study descriptions.
You can install the released version of pipeline from GitHub with:
devtools::install_github("scienceverse/pipeline")
Get the file paths to the json file and data. Load the study parameters and data with the pipeline()
function; this will run the analyses.
library(pipeline) # find file paths to data included with this package installation iat_json_path <- system.file("extdata", "iat.json", package = "pipeline") iat_data_path <- system.file("extdata", "iat.csv", package = "pipeline") iat_study <- pipeline(iat_json_path, iat_data_path)
Generate a report. Set results='asis'
in the code chunk.
summary(iat_study, "hypotheses", "analyses", "results")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.