Commit 887de46
authored
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
0 commit comments