Skip to contents

This function provides a command-line interface for managing a database of boilerplate measures. It allows users to create new databases, open existing ones, and perform various operations on the measures within the database.

Usage

boilerplate_manage_measures(measures_path = NULL)

Arguments

measures_path

A character string specifying the path to the directory where the measures database files are stored. If NULL (default), the function will use the current working directory as determined by here::here().

Value

This function does not return a value. It runs an interactive command-line interface for database management.

Details

The function provides the following main functionalities:

  • Create a new measures database

  • Open an existing measures database

  • List available .rds files in the specified directory

  • Add, delete, modify, and copy measures

  • Create backups of the measures database

  • Perform batch edits on measures

Note

This function uses the rlang, here, cli, and R6 packages.

Examples

if (FALSE) { # \dontrun{
# Run the function with default path (current working directory)
boilerplate_manage_measures()

# Run the function with a specific path
boilerplate_manage_measures("/path/to/measures/directory")
} # }