Add use_version() and use_github_action(), bump to 0.2.0#3
Merged
TroyHernandez merged 6 commits intomainfrom Apr 7, 2026
Merged
Add use_version() and use_github_action(), bump to 0.2.0#3TroyHernandez merged 6 commits intomainfrom
TroyHernandez merged 6 commits intomainfrom
Conversation
New create_package() scaffolds a tinyverse-flavored R package: DESCRIPTION with Authors@R (optional ORCID), NAMESPACE, .Rbuildignore, NEWS.md, tests/tinytest.R entry point, and an optional starter hello() function with matching tinytest test. Pure base R, no new Imports.
- Remove create_package() in favor of pkgKitten::kitten().
- Fix bump_version("dev"): increment a 4th digit starting at 1 instead
of using the .9000 convention.
- Rewrite test_use_version and test_use_github_action to use inline
minimal package scaffolds.
eddelbuettel
approved these changes
Apr 7, 2026
load_all() now returns the populated environment and takes an optional env arg so callers can supply their own target. It no longer calls attach(), so tinypkgr's source is free of search-path side effects and R CMD check --as-cran is clean (0/0/0 aside from the new-submission NOTE). Users who want the previous auto-attach behavior can do it themselves: attach(tinypkgr::load_all(), name = "tinypkgr:mypkg")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lands
use_version()anduse_github_action()for tinypkgr 0.2.0, in prep for first CRAN submission. Originally also addedcreate_package(), but pkgKitten already does that well — dropped in favor of pointing users atpkgKitten::kitten().Commits
Reformat R/dev.R and R/release.R via rformat— pure cosmetic pass, separated for review.Add create_package() and bump to 0.2.0— superseded by commit 5; kept for history.Add use_version() to bump DESCRIPTION + NEWS.md—patch/minor/major/devbumps. UpdatesDESCRIPTIONand prepends a matchingNEWS.mdsection header so the two never drift apart.Add use_github_action() to write r-ci workflow— writes.github/workflows/ci.yamlfrom the canonicaleddelbuettel/github-actions/r-ci@mastertemplate (Ubuntu + macOS).Drop create_package() and switch dev versioning— removescreate_package()(defer to pkgKitten). Switchesbump_version("dev")from the.9000convention (a usethis idiom, not in base R) to incrementing a 4th digit starting at1:0.2.0→0.2.0.1→0.2.0.2. Tests rewritten to inline minimal scaffolds instead of depending oncreate_package().Why
use_version()anduse_github_action()aren't there for human ergonomics — they're guard rails for LLM-driven edits. Claude can get DESCRIPTION's DCF format wrong or half-remember the r-ci YAML; deterministic helpers prevent a class of automated mistakes.create_package()removed because pkgKitten exists, is mature, and is the canonical tinyverse-flavored scaffold. tinypkgr stays focused on the dev/release/use_* helpers that complement it..9000convention is a Wickham-ism, not anything in base R or R-recommended. Switched to a simple incrementing 4th digit.Test plan
tinytest::test_package("tinypkgr")— 32 tests acrosstest_dev,test_use_version,test_use_github_action, all passtinypkgr::check()— 0 errors, 0 warnings, 1 NOTE (the pre-existingattach()inload_all())