Skip to content

Commit bb8ba01

Browse files
committed
minor updates
1 parent a126345 commit bb8ba01

File tree

5 files changed

+10
-84
lines changed

5 files changed

+10
-84
lines changed

.github/workflows/check.yaml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repo
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4.2.2
1919

2020
- name: Setup R
21-
uses: r-lib/actions/setup-r@master
21+
uses: r-lib/actions/setup-r@v2
2222

2323
- name: Install system requirements
2424
run: |
@@ -32,7 +32,7 @@ jobs:
3232
shell: Rscript {0}
3333

3434
- name: Cache R packages
35-
uses: actions/cache@v2
35+
uses: actions/cache@v4.1.2
3636
with:
3737
path: ${{ env.R_LIBS_USER }}
3838
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-${{ hashFiles('.github/depends.Rds') }}
@@ -46,7 +46,7 @@ jobs:
4646
shell: Rscript {0}
4747

4848
- name: Cache bookdown results
49-
uses: actions/cache@v1
49+
uses: actions/cache@v4.1.2
5050
with:
5151
path: _bookdown_files
5252
key: bookdown-${{ hashFiles('**/*Rmd') }}

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description: This repository contains the design specification of the 'targets'
55
and the orchestration and branching model. The goal is to help developers contribute
66
to core elements of the package. Developers are encouraged to to read
77
the rendered output at <https://books.ropensci.org/targets-design>.
8-
Version: 0.8.1.9000
8+
Version: 1.8.0.9009
99
License: MIT + file LICENSE
1010
URL: https://books.ropensci.org/targets-design,
1111
https://github.com/ropensci-books/targets-design

composition.Rmd

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ The following classes define specialized objects for the fields of targets.
1313
* Value
1414
* Metrics
1515
* Store
16-
* File
16+
* File
1717
* Subpipeline
1818
* Junction
19-
* Pedigree
2019
* Cue
2120

2221
Some types of targets need only some of these objects as fields.
@@ -30,7 +29,6 @@ Metrics | ✓ | ✓ | ✓ | | |
3029
Store | ✓ | ✓ | ✓ | | |
3130
Subpipeline | ✓ | ✓ | ✓ | | |
3231
Junction | | ✓ | | | ✓ |
33-
Pedigree | | | ✓ | ✓ | |
3432
Cue | ✓ | ✓ | ✓ | | |
3533
Patternview | | | | | ✓ |
3634

@@ -84,10 +82,6 @@ A `subpipeline` is not actually a class of its own, it is just a `pipeline` obje
8482

8583
A `junction` serves as a branching specification for patterns and a budding specification for `stems`. It contains the name of the parent pattern or stem, the names of the children (buds or branches), and the names of the dependencies of each bud or branch. The junction is the explicit representation of the user-defined `pattern` argument of `tar_target()` combined with the hashes of the available dependencies.
8684

87-
### Pedigree class
88-
89-
Whereas junctions are branching specifications for stems and patterns, pedigrees are branching specifications for buds and branches. A pedigree has the name of the parent (pattern or stem) the name of the child (bud or branch) and the integer index of the child in the parent's junction.
90-
9185
### Cue class
9286

9387
A cue object is a collection of rules for deciding whether a target is up to date. `targets` allows the user to activate or suppress some of these rules to change the conditions under which targets rerun.

data.Rmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ _targets/ # Configurable with tar_config_set().
3030

3131
The number of files equals the number of targets plus two, which makes projects easier to upload and share among collaborators than `drake`'s `.drake/` cache. (Files in `_targets/scratch/` do not count because they can all be safely deleted after `tar_make()`.) However, these files may still be too large and too numerous for code-specific version control systems like Git. For such projects, it may be more appropriate to share caches through external version-aware platforms such as Dropbox, Microsoft OneDrive, and Google Docs.
3232

33+
The exception to this data structure is content-addressable storage as explained in the documentation of `targets::tar_repository_cas()`.
34+
3335
## Targets
3436

3537
With the exception of dynamic files, the return value of each target lives in its own file inside `_targets/objects/`. The file name is the name of the target, and there is no file extension. The metadata keeps track of the storage format that governs how to read and write the target's data. The default format is RDS, so if target `x` has no explicit format, then `readRDS("_targets/objects/x")` will read the data. (However, we state this just for the sake of understanding. The recommended way to read data is `tar_read()`, which takes the storage format into account.)
@@ -82,8 +84,10 @@ These fields are pipe-separated in the flat file. Fields `path` and `children` c
8284
1. The `command` metadata field (the hash of the R command) is different from last time.
8385
1. The `depend` metadata field (the hash of the immediate upstream dependency targets and global objects) is different from last time.
8486
1. The storage `format` (user-specified with `tar_target()` or `tar_option_set()`) is different from last time.
87+
1. The storage `repository`` (user-specified with `tar_target()` or `tar_option_set()`) is different from last time.
8588
1. The `iteration` method (user-specified with `tar_target()` or `tar_option_set()`) is different from last time.
8689
1. A target's file (either the one in `_targets/objects/` or a dynamic file) does not exist or changed since last time.
90+
1. The target-specific random number generator seed is different from last time.
8791

8892
A target's dependencies can include functions, and these functions are tracked for changes using a custom hashing procedure. When a function's hash changes, the function is considered invalidated, and so are any downstream targets with the `depend` cue turned on. The `targets` package computes the hash of a function in the following way.
8993

0 commit comments

Comments
 (0)