Skip to content

fix: use Rapp launcher frontmatter to load standard packages in btw CLI#181

Merged
gadenbuie merged 3 commits intomainfrom
fix/rapp-default-packages
Mar 18, 2026
Merged

fix: use Rapp launcher frontmatter to load standard packages in btw CLI#181
gadenbuie merged 3 commits intomainfrom
fix/rapp-default-packages

Conversation

@gadenbuie
Copy link
Copy Markdown
Collaborator

Summary

The btw CLI script (exec/btw.R) previously used library() calls to load btw and utils. The idiomatic Rapp approach is to declare packages via default-packages in the #| launcher: YAML frontmatter, which gets baked into the installed shell launcher by install_pkg_cli_apps().

Replaces the library() calls with a #| launcher: frontmatter block that loads base, datasets, utils, stats, methods, and btw — matching R's standard default packages plus btw.

Verification

Install the CLI and verify commands work correctly:

btw::install_btw_cli()
btw docs help dplyr::mutate

Use `default-packages` in the `#| launcher:` frontmatter instead of
`library()` calls, which is the idiomatic Rapp approach. Adds datasets,
stats, and methods alongside base, utils, and btw.
@gadenbuie gadenbuie marked this pull request as ready for review March 18, 2026 15:01
@gadenbuie gadenbuie merged commit 4e8bad5 into main Mar 18, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant