Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
Auto-generated via `{sandpaper}`
Source  : b981d30
Branch  : main
Author  : joelnitta <[email protected]>
Time    : 2024-07-19 00:12:26 +0000
Message : [actions] update sandpaper workflow to version 0.16.5
  • Loading branch information
actions-user committed Nov 19, 2024
1 parent a678f4a commit 73a7c45
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 1,936 deletions.
6 changes: 3 additions & 3 deletions basic-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ tar_make()

``` output
▶ dispatched target penguins_csv_file
● completed target penguins_csv_file [0 seconds]
● completed target penguins_csv_file [0.001 seconds]
▶ dispatched target penguins_data_raw
● completed target penguins_data_raw [0.228 seconds]
● completed target penguins_data_raw [0.176 seconds]
▶ dispatched target penguins_data
● completed target penguins_data [0.005 seconds]
▶ ended pipeline [0.314 seconds]
▶ ended pipeline [0.308 seconds]
```

Congratulations, you've run your first workflow with `targets`!
Expand Down
26 changes: 13 additions & 13 deletions branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ tar_plan(
✔ skipped target penguins_data_raw
✔ skipped target penguins_data
▶ dispatched target combined_model
● completed target combined_model [0.034 seconds]
▶ ended pipeline [0.174 seconds]
● completed target combined_model [0.019 seconds]
▶ ended pipeline [0.263 seconds]
```

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.
Expand Down Expand Up @@ -154,14 +154,14 @@ tar_plan(
▶ dispatched target interaction_model
● completed target interaction_model [0.003 seconds]
▶ dispatched target species_model
● completed target species_model [0.001 seconds]
● completed target species_model [0.002 seconds]
▶ dispatched target combined_summary
● completed target combined_summary [0.007 seconds]
● completed target combined_summary [0.008 seconds]
▶ dispatched target interaction_summary
● completed target interaction_summary [0.002 seconds]
● completed target interaction_summary [0.004 seconds]
▶ dispatched target species_summary
● completed target species_summary [0.003 seconds]
▶ ended pipeline [0.264 seconds]
▶ ended pipeline [0.258 seconds]
```

Let's look at the summary of one of the models:
Expand Down Expand Up @@ -230,15 +230,15 @@ First, let's look at the messages provided by `tar_make()`.
✔ skipped target penguins_data_raw
✔ skipped target penguins_data
▶ dispatched target models
● completed target models [0.005 seconds]
● completed target models [0.004 seconds]
▶ dispatched branch model_summaries_812e3af782bee03f
● completed branch model_summaries_812e3af782bee03f [0.006 seconds]
● completed branch model_summaries_812e3af782bee03f [0.008 seconds]
▶ dispatched branch model_summaries_2b8108839427c135
● completed branch model_summaries_2b8108839427c135 [0.002 seconds]
● completed branch model_summaries_2b8108839427c135 [0.003 seconds]
▶ dispatched branch model_summaries_533cd9a636c3e05b
● completed branch model_summaries_533cd9a636c3e05b [0.003 seconds]
● completed pattern model_summaries
▶ ended pipeline [0.264 seconds]
▶ ended pipeline [0.27 seconds]
```

There is a series of smaller targets (branches) that are each named like model_summaries_812e3af782bee03f, then one overall `model_summaries` target.
Expand Down Expand Up @@ -369,13 +369,13 @@ tar_plan(
✔ skipped target penguins_data
✔ skipped target models
▶ dispatched branch model_summaries_812e3af782bee03f
● completed branch model_summaries_812e3af782bee03f [0.054 seconds]
● completed branch model_summaries_812e3af782bee03f [0.014 seconds]
▶ dispatched branch model_summaries_2b8108839427c135
● completed branch model_summaries_2b8108839427c135 [0.006 seconds]
● completed branch model_summaries_2b8108839427c135 [0.007 seconds]
▶ dispatched branch model_summaries_533cd9a636c3e05b
● completed branch model_summaries_533cd9a636c3e05b [0.004 seconds]
● completed pattern model_summaries
▶ ended pipeline [0.27 seconds]
▶ ended pipeline [0.276 seconds]
```

And this time, when we load the `model_summaries`, we can tell which model corresponds to which row (you may need to scroll to the right to see it).
Expand Down
87 changes: 0 additions & 87 deletions config.yaml

This file was deleted.

22 changes: 11 additions & 11 deletions files.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ tar_plan(

``` output
▶ dispatched target some_data
● completed target some_data [0 seconds]
▶ ended pipeline [0.067 seconds]
● completed target some_data [0.001 seconds]
▶ ended pipeline [0.083 seconds]
```

If we inspect the contents of `some_data` with `tar_read(some_data)`, it will contain the string `"Hello World"` as expected.
Expand All @@ -77,7 +77,7 @@ tar_plan(

``` output
✔ skipped target some_data
✔ skipped pipeline [0.066 seconds]
✔ skipped pipeline [0.082 seconds]
```

The target `some_data` was skipped, even though the contents of the file changed.
Expand All @@ -98,10 +98,10 @@ tar_plan(

``` output
▶ dispatched target data_file
● completed target data_file [0.001 seconds]
● completed target data_file [0 seconds]
▶ dispatched target some_data
● completed target some_data [0.001 seconds]
▶ ended pipeline [0.091 seconds]
● completed target some_data [0 seconds]
▶ ended pipeline [0.106 seconds]
```

This time we see that `targets` does successfully re-build `some_data` as expected.
Expand Down Expand Up @@ -184,12 +184,12 @@ tar_plan(

``` output
▶ dispatched target penguins_data_raw_file
● completed target penguins_data_raw_file [0.002 seconds]
● completed target penguins_data_raw_file [0.001 seconds]
▶ dispatched target penguins_data_raw
● completed target penguins_data_raw [0.222 seconds]
● completed target penguins_data_raw [0.095 seconds]
▶ dispatched target penguins_data
● completed target penguins_data [0.012 seconds]
▶ ended pipeline [0.322 seconds]
● completed target penguins_data [0.015 seconds]
▶ ended pipeline [0.337 seconds]
```

::::::::::::::::::::::::::::::::::
Expand Down Expand Up @@ -269,7 +269,7 @@ tar_plan(
● completed target hello_caps [0 seconds]
▶ dispatched target hello_caps_out
● completed target hello_caps_out [0 seconds]
▶ ended pipeline [0.089 seconds]
▶ ended pipeline [0.102 seconds]
```

Take a look at `hello_caps.txt` in the `results` folder and verify it is as you expect.
Expand Down
12 changes: 6 additions & 6 deletions lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tar_make()
✔ skipped target penguins_csv_file
✔ skipped target penguins_data_raw
✔ skipped target penguins_data
✔ skipped pipeline [0.092 seconds]
✔ skipped pipeline [0.128 seconds]
```

Remember how the first time we ran the pipeline, `targets` printed out a list of each target as it was being built?
Expand Down Expand Up @@ -86,8 +86,8 @@ tar_make()
✔ skipped target penguins_csv_file
✔ skipped target penguins_data_raw
▶ dispatched target penguins_data
● completed target penguins_data [0.059 seconds]
▶ ended pipeline [0.158 seconds]
● completed target penguins_data [0.012 seconds]
▶ ended pipeline [0.263 seconds]
```

What happened?
Expand Down Expand Up @@ -252,7 +252,7 @@ tar_make()
✔ skipped target penguins_csv_file
✔ skipped target penguins_data_raw
✔ skipped target penguins_data
✔ skipped pipeline [0.133 seconds]
✔ skipped pipeline [0.211 seconds]
```

Let's invalidate `penguins_data` and run it again:
Expand All @@ -267,8 +267,8 @@ tar_make()
✔ skipped target penguins_csv_file
✔ skipped target penguins_data_raw
▶ dispatched target penguins_data
● completed target penguins_data [0.057 seconds]
▶ ended pipeline [0.154 seconds]
● completed target penguins_data [0.013 seconds]
▶ ended pipeline [0.238 seconds]
```

If you want to reset **everything** and start fresh, you can use `tar_invalidate(everything())` (`tar_invalidate()` [accepts `tidyselect` expressions](https://docs.ropensci.org/targets/reference/tar_invalidate.html) to specify target names).
Expand Down
40 changes: 20 additions & 20 deletions md5sum.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
"file" "checksum" "built" "date"
"CODE_OF_CONDUCT.md" "c93c83c630db2fe2462240bf72552548" "site/built/CODE_OF_CONDUCT.md" "2024-09-24"
"LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2024-09-24"
"config.yaml" "97cf738871f0133f70da7d938c14bfb2" "site/built/config.yaml" "2024-09-24"
"index.md" "06bbfd5ab0e2353032361b3321342d13" "site/built/index.md" "2024-09-24"
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2024-09-24"
"episodes/introduction.Rmd" "feaacfccab344eb1fa6e702aded97924" "site/built/introduction.md" "2024-09-24"
"episodes/basic-targets.Rmd" "90190eae899db41c64b69320e3f72365" "site/built/basic-targets.md" "2024-09-24"
"episodes/cache.Rmd" "b487d6d792469641faec63c838541aac" "site/built/cache.md" "2024-09-24"
"episodes/lifecycle.Rmd" "7974a62cc37ac1138647d043fe1e4a26" "site/built/lifecycle.md" "2024-09-24"
"episodes/organization.Rmd" "74df25779b74013eeb6a8ca7b8934efe" "site/built/organization.md" "2024-09-24"
"episodes/packages.Rmd" "2c0eb6138ea6685a0ee279c89b381bc4" "site/built/packages.md" "2024-09-24"
"episodes/files.Rmd" "b7f4ef83379a58d5c30d8e011e3b2c0d" "site/built/files.md" "2024-09-24"
"episodes/branch.Rmd" "6f1187d6df3310eb042aaae3a44328dc" "site/built/branch.md" "2024-09-24"
"episodes/parallel.Rmd" "3ec032e9a527138e70e2efb4e5a10410" "site/built/parallel.md" "2024-09-24"
"episodes/quarto.Rmd" "76b257de72894ab24e1d1852b6149bf9" "site/built/quarto.md" "2024-09-24"
"instructors/instructor-notes.md" "df3784ee5c0436a9e171071f7965d3fc" "site/built/instructor-notes.md" "2024-09-24"
"learners/reference.md" "3f06251c1f932e767ae8f22db25eb5a2" "site/built/reference.md" "2024-09-24"
"learners/setup.md" "2c9965f182c4d73141cbf0bef2990f16" "site/built/setup.md" "2024-09-24"
"profiles/learner-profiles.md" "44d8b9d8aca7963e6577e8c67d23eac0" "site/built/learner-profiles.md" "2024-09-24"
"renv/profiles/lesson-requirements/renv.lock" "5fbd801f48f455801ce148a437451348" "site/built/renv.lock" "2024-09-24"
"CODE_OF_CONDUCT.md" "c93c83c630db2fe2462240bf72552548" "site/built/CODE_OF_CONDUCT.md" "2024-11-19"
"LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2024-11-19"
"config.yaml" "97cf738871f0133f70da7d938c14bfb2" "site/built/config.yaml" "2024-11-19"
"index.md" "06bbfd5ab0e2353032361b3321342d13" "site/built/index.md" "2024-11-19"
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2024-11-19"
"episodes/introduction.Rmd" "feaacfccab344eb1fa6e702aded97924" "site/built/introduction.md" "2024-11-19"
"episodes/basic-targets.Rmd" "90190eae899db41c64b69320e3f72365" "site/built/basic-targets.md" "2024-11-19"
"episodes/cache.Rmd" "b487d6d792469641faec63c838541aac" "site/built/cache.md" "2024-11-19"
"episodes/lifecycle.Rmd" "7974a62cc37ac1138647d043fe1e4a26" "site/built/lifecycle.md" "2024-11-19"
"episodes/organization.Rmd" "74df25779b74013eeb6a8ca7b8934efe" "site/built/organization.md" "2024-11-19"
"episodes/packages.Rmd" "2c0eb6138ea6685a0ee279c89b381bc4" "site/built/packages.md" "2024-11-19"
"episodes/files.Rmd" "b7f4ef83379a58d5c30d8e011e3b2c0d" "site/built/files.md" "2024-11-19"
"episodes/branch.Rmd" "6f1187d6df3310eb042aaae3a44328dc" "site/built/branch.md" "2024-11-19"
"episodes/parallel.Rmd" "3ec032e9a527138e70e2efb4e5a10410" "site/built/parallel.md" "2024-11-19"
"episodes/quarto.Rmd" "76b257de72894ab24e1d1852b6149bf9" "site/built/quarto.md" "2024-11-19"
"instructors/instructor-notes.md" "df3784ee5c0436a9e171071f7965d3fc" "site/built/instructor-notes.md" "2024-11-19"
"learners/reference.md" "3f06251c1f932e767ae8f22db25eb5a2" "site/built/reference.md" "2024-11-19"
"learners/setup.md" "2c9965f182c4d73141cbf0bef2990f16" "site/built/setup.md" "2024-11-19"
"profiles/learner-profiles.md" "44d8b9d8aca7963e6577e8c67d23eac0" "site/built/learner-profiles.md" "2024-11-19"
"renv/profiles/lesson-requirements/renv.lock" "64450c4579ae58b8a06c50fb6aa8d6fc" "site/built/renv.lock" "2024-11-19"
2 changes: 1 addition & 1 deletion organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Last error traceback:
doTryCatch(return(expr), name, parentenv, handler)
base::withCallingHandlers({ NULL base::saveRDS(base::do.call(base::do.ca...
base::saveRDS(base::do.call(base::do.call, base::c(base::readRDS("/tmp/R...
base::do.call(base::do.call, base::c(base::readRDS("/tmp/RtmpfxXkIl/call...
base::do.call(base::do.call, base::c(base::readRDS("/tmp/Rtmp1SI1S8/call...
(function (what, args, quote = FALSE, envir = parent.frame()) { if (!is....
(function (targets_function, targets_arguments, options, envir = NULL, s...
tryCatch(out <- withCallingHandlers(targets::tar_callr_inner_try(targets...
Expand Down
12 changes: 6 additions & 6 deletions packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ tar_plan(

``` output
▶ dispatched target adelie_data
● completed target adelie_data [0.018 seconds]
▶ ended pipeline [0.085 seconds]
● completed target adelie_data [0.017 seconds]
▶ ended pipeline [0.099 seconds]
```

This method gets around the slow-downs that may sometimes be experienced with Method 1.
Expand Down Expand Up @@ -100,8 +100,8 @@ tar_plan(

``` output
▶ dispatched target adelie_data
● completed target adelie_data [0.019 seconds]
▶ ended pipeline [0.086 seconds]
● completed target adelie_data [0.017 seconds]
▶ ended pipeline [0.099 seconds]
```

This can be more memory efficient in some cases than loading all packages, since not every target is always made during a typical run of the workflow.
Expand All @@ -127,8 +127,8 @@ tar_plan(

``` output
▶ dispatched target adelie_data
● completed target adelie_data [0.009 seconds]
▶ ended pipeline [0.074 seconds]
● completed target adelie_data [0.008 seconds]
▶ ended pipeline [0.091 seconds]
```

The benefits of this approach are that the origins of all functions is explicit, so you could browse your code (for example, by looking at its source in GitHub), and immediately know where all the functions come from.
Expand Down
Loading

0 comments on commit 73a7c45

Please sign in to comment.