Skip to content

Commit 887de46

Browse files
Add use_version() and use_github_action(), bump to 0.2.0 (#3)
* Reformat R/dev.R and R/release.R via rformat * Add create_package() and bump to 0.2.0 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. * Add use_version() to bump DESCRIPTION + NEWS.md * Add use_github_action() to write r-ci workflow * Drop create_package() and switch dev versioning - 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. * Refactor load_all() to not modify the search path 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")
1 parent 6296771 commit 887de46

13 files changed

Lines changed: 786 additions & 439 deletions

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: tinypkgr
22
Title: Minimal R Package Development Utilities
3-
Version: 0.1.0
3+
Version: 0.2.0
44
Authors@R:
55
person("Troy", "Hernandez", email = "troy@cornball.ai", role = c("aut", "cre"),
66
comment = c(ORCID = "0009-0005-4248-604X"))

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export(load_all)
88
export(maintainer)
99
export(reload)
1010
export(submit_cran)
11+
export(use_github_action)
12+
export(use_version)
1113

1214
importFrom(curl,curl_fetch_memory)
1315
importFrom(curl,curl_upload)

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# tinypkgr 0.2.0
2+
3+
* New `use_version()` bumps the DESCRIPTION Version field and prepends a matching NEWS.md section header. Supports `patch`, `minor`, `major`, and `dev` bumps. (For package skeleton creation, use `pkgKitten::kitten()`.)
4+
* New `use_github_action()` writes a `.github/workflows/ci.yaml` from the r-ci template (Ubuntu + macOS) and adds `^\.github$` to `.Rbuildignore`.
5+
16
# tinypkgr 0.1.0
27

38
* Initial CRAN release.

0 commit comments

Comments
 (0)