Skip to content

Commit

Permalink
Increment version number to 0.2.1 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinto-b committed Dec 7, 2022
1 parent 2404bcb commit 527e225
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: makepipe
Title: Pipeline Tools Inspired by 'GNU Make'
Version: 0.2.0.9000
Version: 0.2.1
Authors@R:
person(given = "Kinto",
family = "Behr",
Expand Down
31 changes: 30 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
# makepipe (development version)
# makepipe 0.2.1

* You can now specify the targets and dependencies (and so on) for each source script in your pipeline **within** that script using roxygen tags like this,

```r
#'@title Load
#'@description Clean raw survey data and do derivations
#'@dependencies "data/raw.Rds", "lookup/concordance.csv"
#'@targets "data/1 data.Rds"
#'@makepipe
NULL
```

The entire pipeline can then be executed in one fell-swoop with `make_with_dir()`, simply by passing through the directory in which the scripts are located. Alternatively, you can construct your pipeline piece by piece using `make_with_roxy()`. For example, using the tags above, you would have

```r
# This:
make_with_roxy("load.R")

# Instead of this:
make_with_source(
"load.R",
targets = "data/1 data.Rds",
dependencies = c("data/raw.Rds", "lookup/concordance.csv"),
label = "Load",
note = "Clean raw survey data and do derivations"
)
```

* You can now produce a plain text summary of your pipeline using `show_pipeline(as = "text")`. You can also save this using, e.g., `save_pipeline(file = "pipeline.md", as = "text")`.

# makepipe 0.2.0

Expand Down

0 comments on commit 527e225

Please sign in to comment.