Crandore Hub

boilerplate

Managing and Compiling Manuscript Templates

Managing and generating standardised text for methods and results sections of scientific reports. It handles template variable substitution and supports hierarchical organisation of text through dot-separated paths. The package supports both RDS and JSON database formats, enabling version control and cross-language compatibility.

README

# Example Data Files

This directory contains example data files for the boilerplate package:

## example_measures.csv
A CSV file containing example measure definitions with the following fields:
- name: The measure identifier
- description: Brief description of the measure
- reference: Citation key
- items: Pipe-separated list of items
- waves: Which waves the measure was collected
- keywords: Pipe-separated keywords

## example_methods.json
A JSON file showing how methods text can be organized hierarchically with template variables.

## Usage

These files can be used as templates for organizing your own boilerplate content. To load them:

```r
# Get path to example files
measures_file <- system.file("extdata", "example_measures.csv", package = "boilerplate")
methods_file <- system.file("extdata", "example_methods.json", package = "boilerplate")

# Read the files
measures_df <- read.csv(measures_file, stringsAsFactors = FALSE)
methods_list <- jsonlite::fromJSON(methods_file)
```

Versions across snapshots

VersionRepositoryFileSize
1.3.0 2026-04-09 windows/windows R-4.5 boilerplate_1.3.0.zip 970.1 KiB

Dependencies (latest)

Imports

Suggests