@@ -93,10 +93,9 @@ The following objects are masked from ‘package:datasets’:
93
93
94
94
penguins, penguins_raw
95
95
96
- ✔ skipping targets (1 so far)...
97
- ▶ dispatched target combined_model
98
- ● completed target combined_model [0.012 seconds, 11.2 kilobytes]
99
- ▶ ended pipeline [0.121 seconds]
96
+ + combined_model dispatched
97
+ ✔ combined_model completed [14ms, 11.20 kB]
98
+ ✔ ended pipeline [121ms, 1 completed, 3 skipped]
100
99
```
101
100
102
101
Let's have a look at the model. We will use the ` glance() ` function from the ` broom ` package. Unlike base R ` summary() ` , this function returns output as a tibble (the tidyverse equivalent of a dataframe), which as we will see later is quite useful for downstream analyses.
@@ -181,22 +180,21 @@ The following objects are masked from ‘package:datasets’:
181
180
182
181
penguins, penguins_raw
183
182
184
- ✔ skipping targets (1 so far)...
185
- ▶ dispatched target adelie_model
186
- ● completed target adelie_model [0.009 seconds, 6.475 kilobytes]
187
- ▶ dispatched target gentoo_model
188
- ● completed target gentoo_model [0.001 seconds, 5.878 kilobytes]
189
- ▶ dispatched target chinstrap_model
190
- ● completed target chinstrap_model [0.001 seconds, 4.534 kilobytes]
191
- ▶ dispatched target combined_summary
192
- ● completed target combined_summary [0.007 seconds, 346 bytes]
193
- ▶ dispatched target adelie_summary
194
- ● completed target adelie_summary [0.002 seconds, 346 bytes]
195
- ▶ dispatched target gentoo_summary
196
- ● completed target gentoo_summary [0.002 seconds, 346 bytes]
197
- ▶ dispatched target chinstrap_summary
198
- ● completed target chinstrap_summary [0.002 seconds, 346 bytes]
199
- ▶ ended pipeline [0.155 seconds]
183
+ + adelie_model dispatched
184
+ ✔ adelie_model completed [13ms, 6.47 kB]
185
+ + gentoo_model dispatched
186
+ ✔ gentoo_model completed [44ms, 5.88 kB]
187
+ + chinstrap_model dispatched
188
+ ✔ chinstrap_model completed [2ms, 4.53 kB]
189
+ + combined_summary dispatched
190
+ ✔ combined_summary completed [6ms, 346 B]
191
+ + adelie_summary dispatched
192
+ ✔ adelie_summary completed [3ms, 346 B]
193
+ + gentoo_summary dispatched
194
+ ✔ gentoo_summary completed [3ms, 346 B]
195
+ + chinstrap_summary dispatched
196
+ ✔ chinstrap_summary completed [4ms, 346 B]
197
+ ✔ ended pipeline [368ms, 7 completed, 4 skipped]
200
198
```
201
199
202
200
Let's look at the summary of one of the models:
@@ -293,19 +291,13 @@ The following objects are masked from ‘package:datasets’:
293
291
294
292
penguins, penguins_raw
295
293
296
- ✔ skipping targets (1 so far)...
297
- ▶ dispatched target combined_summary
298
- ● completed target combined_summary [0.018 seconds, 346 bytes]
299
- ▶ dispatched target penguins_data_grouped
300
- ● completed target penguins_data_grouped [0.01 seconds, 1.525 kilobytes]
301
- ▶ dispatched branch species_summary_7fe6634f7c7f6a77
302
- ● completed branch species_summary_7fe6634f7c7f6a77 [0.006 seconds, 346 bytes]
303
- ▶ dispatched branch species_summary_c580675a85977909
304
- ● completed branch species_summary_c580675a85977909 [0.003 seconds, 346 bytes]
305
- ▶ dispatched branch species_summary_af3bb92d1b0f36d3
306
- ● completed branch species_summary_af3bb92d1b0f36d3 [0.003 seconds, 346 bytes]
307
- ● completed pattern species_summary
308
- ▶ ended pipeline [0.165 seconds]
294
+ + combined_summary dispatched
295
+ ✔ combined_summary completed [8ms, 346 B]
296
+ + penguins_data_grouped dispatched
297
+ ✔ penguins_data_grouped completed [5ms, 1.52 kB]
298
+ + species_summary declared [3 branches]
299
+ ✔ species_summary completed [11ms, 1.04 kB]
300
+ ✔ ended pipeline [324ms, 5 completed, 3 skipped]
309
301
```
310
302
311
303
There is a series of smaller targets (branches) that are each named like species_summary_7fe6634f7c7f6a77, then one overall ` species_summary ` target.
@@ -413,17 +405,11 @@ The following objects are masked from ‘package:datasets’:
413
405
414
406
penguins, penguins_raw
415
407
416
- ✔ skipping targets (1 so far)...
417
- ▶ dispatched target combined_summary
418
- ● completed target combined_summary [0.028 seconds, 369 bytes]
419
- ▶ dispatched branch species_summary_7fe6634f7c7f6a77
420
- ● completed branch species_summary_7fe6634f7c7f6a77 [0.01 seconds, 366 bytes]
421
- ▶ dispatched branch species_summary_c580675a85977909
422
- ● completed branch species_summary_c580675a85977909 [0.005 seconds, 370 bytes]
423
- ▶ dispatched branch species_summary_af3bb92d1b0f36d3
424
- ● completed branch species_summary_af3bb92d1b0f36d3 [0.005 seconds, 367 bytes]
425
- ● completed pattern species_summary
426
- ▶ ended pipeline [0.173 seconds]
408
+ + combined_summary dispatched
409
+ ✔ combined_summary completed [24ms, 369 B]
410
+ + species_summary declared [3 branches]
411
+ ✔ species_summary completed [105ms, 1.10 kB]
412
+ ✔ ended pipeline [320ms, 4 completed, 4 skipped]
427
413
```
428
414
429
415
And this time, when we load the ` model_summaries ` , we can tell which model corresponds to which row (the ` .before = 1 ` in ` mutate() ` ensures that it shows up before the other columns).
@@ -584,28 +570,17 @@ The following objects are masked from ‘package:datasets’:
584
570
585
571
penguins, penguins_raw
586
572
587
- ✔ skipping targets (1 so far)...
588
- ▶ dispatched target penguins_data
589
- ● completed target penguins_data [0.023 seconds, 1.525 kilobytes]
590
- ▶ dispatched target combined_summary
591
- ● completed target combined_summary [0.013 seconds, 369 bytes]
592
- ▶ dispatched branch species_summary_1598bb4431372f32
593
- ● completed branch species_summary_1598bb4431372f32 [0.009 seconds, 366 bytes]
594
- ▶ dispatched branch species_summary_6b9109ba2e9d27fd
595
- ● completed branch species_summary_6b9109ba2e9d27fd [0.005 seconds, 370 bytes]
596
- ▶ dispatched branch species_summary_625f9fbc7f62298a
597
- ● completed branch species_summary_625f9fbc7f62298a [0.005 seconds, 367 bytes]
598
- ● completed pattern species_summary
599
- ▶ dispatched target combined_predictions
600
- ● completed target combined_predictions [0.007 seconds, 25.907 kilobytes]
601
- ▶ dispatched branch species_predictions_1598bb4431372f32
602
- ● completed branch species_predictions_1598bb4431372f32 [0.008 seconds, 11.581 kilobytes]
603
- ▶ dispatched branch species_predictions_6b9109ba2e9d27fd
604
- ● completed branch species_predictions_6b9109ba2e9d27fd [0.011 seconds, 6.245 kilobytes]
605
- ▶ dispatched branch species_predictions_625f9fbc7f62298a
606
- ● completed branch species_predictions_625f9fbc7f62298a [0.005 seconds, 9.624 kilobytes]
607
- ● completed pattern species_predictions
608
- ▶ ended pipeline [0.238 seconds]
573
+ + penguins_data dispatched
574
+ ✔ penguins_data completed [24ms, 1.52 kB]
575
+ + combined_summary dispatched
576
+ ✔ combined_summary completed [14ms, 369 B]
577
+ + species_summary declared [3 branches]
578
+ ✔ species_summary completed [23ms, 1.10 kB]
579
+ + combined_predictions dispatched
580
+ ✔ combined_predictions completed [9ms, 25.91 kB]
581
+ + species_predictions declared [3 branches]
582
+ ✔ species_predictions completed [24ms, 27.45 kB]
583
+ ✔ ended pipeline [433ms, 9 completed, 2 skipped]
609
584
```
610
585
611
586
::::::::::::::::::::::::::::::::::::: {.callout}
0 commit comments