Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Package: ojoutils
Title: A Collection of Nifty Functions and Objects for OJO Analysts
Version: 0.2.1
Version: 0.3.0
Authors@R: c(
person("Brancen", "Gregory", , "brancengregory@gmail.com", role = c("aut", "cre")),
person("Andrew", "Bell", , "abell@okpolicy.org", role = "aut"))
person("Andrew", "Bell", , "abell@okpolicy.org", role = "aut"),
person("Mason", "Counts", , "mcounts@okpolicy.org", role = "aut"))
Description: We find ourselves repeating the same simple tasks or running a series of R commands over and over again. No more!
License: GPL (>= 3)
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.3
Imports:
arrow,
cli,
Expand Down Expand Up @@ -47,3 +47,4 @@ Config/rextendr/version: 0.5.0
SystemRequirements: Cargo (Rust's package manager), rustc >= 1.65.0, xz
Depends:
R (>= 4.2)
Config/roxygen2/version: 8.0.0
27 changes: 27 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# 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)

- Adds Google Cloud Storage (GCS) utilities: `gcs_auth_bucket()`, `gcs_read_csv()`, `gcs_write_csv()`, `gcs_list_objects()`, and `tar_gcs_csv()` for working with GCS via the arrow package.
Expand Down
2 changes: 1 addition & 1 deletion man/gcs_read_csv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions man/ojo_counties.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/ojoutils-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading