Skip to contents

ojoutils 0.3.0 (2026-05-04)

Breaking Changes

  • ojo_use_template() has been completely rewritten with a new API:
    • Changed from separate base_dir and project_name parameters to a single path parameter
    • Project names must now be in kebab-case format (lowercase letters, numbers, and hyphens only)
    • Automatically creates the directory if it doesn’t exist
    • Aborts with an error if the directory already exists and is non-empty

New Features

  • ojo_use_template() now supports full interactive mode - when called without arguments in an interactive R session, it prompts for:
    • Project name (with kebab-case validation)
    • Parent directory location
    • Template type (website or report)
  • Added support for two distinct templates:
    • "website" (default) - Multi-page Quarto website from okpolicy-website-template
    • "report" - Single-page Quarto report from okpolicy-report-template
  • New cli_yeah() helper function for interactive yes/no confirmations with styled cli output

Improvements

  • Template validation uses rlang::arg_match() for better error messages
  • Friendly template names (“website”, “report”) are mapped internally to GitHub repository specs
  • Extracted CLI helper functions to R/cli.R for reuse across the package

ojoutils 0.2.0 (2026-04-23)

ojoutils 0.1.3

ojoutils 0.1.2 (2024-03-12)

  • Adds ojo_use_template function to make it easier to add a new blank Quarto report to a project repository.
  • Adds dir_empty, styled in fs fashion, to easily check whether a directory is, well, empty.

ojoutils 0.1.1 (2023-07-08)

  • Adds ojo_parse_county function for standardizing Oklahoma county names, optionally specifying the case of the result.
  • Adds ojo_counties object which is a vector of Oklahoma county names in lowercase. This is also used internally by ojo_parse_county.

ojoutils 0.1.0 (2023-07-07)

  • Adds function limit which works like head but is helpful for when your brain is in SQL mode.