Skip to content

Commit

Permalink
differences for PR #18
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 10, 2023
1 parent d027351 commit 7799d22
Show file tree
Hide file tree
Showing 10 changed files with 129 additions and 1,979 deletions.
14 changes: 7 additions & 7 deletions basic-targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ tar_make()


```{.output}
start target penguins_csv_file
built target penguins_csv_file [0.002 seconds]
start target penguins_data_raw
built target penguins_data_raw [0.167 seconds]
start target penguins_data
built target penguins_data [0.011 seconds]
end pipeline [0.277 seconds]
start target penguins_csv_file
built target penguins_csv_file [0.002 seconds]
start target penguins_data_raw
built target penguins_data_raw [0.18 seconds]
start target penguins_data
built target penguins_data [0.012 seconds]
end pipeline [0.298 seconds]
```

Congratulations, you've run your first workflow with `targets`!
Expand Down
64 changes: 32 additions & 32 deletions branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ tar_plan(
✔ skip target penguins_data_raw_file
✔ skip target penguins_data_raw
✔ skip target penguins_data
start target combined_model
built target combined_model [0.036 seconds]
end pipeline [0.145 seconds]
start target combined_model
built target combined_model [0.028 seconds]
end pipeline [0.124 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 @@ -146,17 +146,17 @@ tar_plan(
✔ skip target penguins_data_raw
✔ skip target penguins_data
✔ skip target combined_model
start target interaction_model
built target interaction_model [0.007 seconds]
start target species_model
built target species_model [0.002 seconds]
start target combined_summary
built target combined_summary [0.066 seconds]
start target interaction_summary
built target interaction_summary [0.008 seconds]
start target species_summary
built target species_summary [0.005 seconds]
end pipeline [0.231 seconds]
start target interaction_model
built target interaction_model [0.01 seconds]
start target species_model
built target species_model [0.002 seconds]
start target combined_summary
built target combined_summary [0.011 seconds]
start target interaction_summary
built target interaction_summary [0.058 seconds]
start target species_summary
built target species_summary [0.005 seconds]
end pipeline [0.212 seconds]
```

Let's look at the summary of one of the models:
Expand Down Expand Up @@ -225,16 +225,16 @@ First, let's look at the messages provided by `tar_make()`.
✔ skip target penguins_data_raw_file
✔ skip target penguins_data_raw
✔ skip target penguins_data
start target models
built target models [0.008 seconds]
start branch model_summaries_5ad4cec5
built branch model_summaries_5ad4cec5 [0.01 seconds]
start branch model_summaries_c73912d5
built branch model_summaries_c73912d5 [0.058 seconds]
start branch model_summaries_91696941
built branch model_summaries_91696941 [0.005 seconds]
built pattern model_summaries
end pipeline [0.216 seconds]
start target models
built target models [0.007 seconds]
start branch model_summaries_5ad4cec5
built branch model_summaries_5ad4cec5 [0.01 seconds]
start branch model_summaries_c73912d5
built branch model_summaries_c73912d5 [0.004 seconds]
start branch model_summaries_91696941
built branch model_summaries_91696941 [0.06 seconds]
built pattern model_summaries
end pipeline [0.207 seconds]
```

There is a series of smaller targets (branches) that are each named like model_summaries_5ad4cec5, then one overall `model_summaries` target.
Expand Down Expand Up @@ -364,14 +364,14 @@ tar_plan(
✔ skip target penguins_data_raw
✔ skip target penguins_data
✔ skip target models
start branch model_summaries_5ad4cec5
built branch model_summaries_5ad4cec5 [0.019 seconds]
start branch model_summaries_c73912d5
built branch model_summaries_c73912d5 [0.01 seconds]
start branch model_summaries_91696941
built branch model_summaries_91696941 [0.007 seconds]
built pattern model_summaries
end pipeline [0.222 seconds]
start branch model_summaries_5ad4cec5
built branch model_summaries_5ad4cec5 [0.02 seconds]
start branch model_summaries_c73912d5
built branch model_summaries_c73912d5 [0.065 seconds]
start branch model_summaries_91696941
built branch model_summaries_91696941 [0.006 seconds]
built pattern model_summaries
end pipeline [0.212 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.

50 changes: 25 additions & 25 deletions files.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ tar_plan(


```{.output}
start target some_data
built target some_data [0.002 seconds]
end pipeline [0.077 seconds]
start target some_data
built target some_data [0.001 seconds]
end pipeline [0.08 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}
✔ skip target some_data
✔ skip pipeline [0.057 seconds]
✔ skip pipeline [0.055 seconds]
```

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


```{.output}
start target data_file
built target data_file [0.001 seconds]
start target some_data
built target some_data [0.001 seconds]
end pipeline [0.092 seconds]
start target data_file
built target data_file [0 seconds]
start target some_data
built target some_data [0 seconds]
end pipeline [0.083 seconds]
```

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


```{.output}
start target penguins_data_raw_file
built target penguins_data_raw_file [0.002 seconds]
start target penguins_data_raw
built target penguins_data_raw [0.358 seconds]
start target penguins_data
built target penguins_data [0.021 seconds]
end pipeline [0.476 seconds]
start target penguins_data_raw_file
built target penguins_data_raw_file [0.002 seconds]
start target penguins_data_raw
built target penguins_data_raw [0.366 seconds]
start target penguins_data
built target penguins_data [0.022 seconds]
end pipeline [0.483 seconds]
```

::::::::::::::::::::::::::::::::::
Expand Down Expand Up @@ -259,15 +259,15 @@ tar_plan(


```{.output}
start target hello_file
built target hello_file [0.002 seconds]
start target hello
built target hello [0 seconds]
start target hello_caps
built target hello_caps [0.001 seconds]
start target hello_caps_out
built target hello_caps_out [0.011 seconds]
end pipeline [0.113 seconds]
start target hello_file
built target hello_file [0.001 seconds]
start target hello
built target hello [0 seconds]
start target hello_caps
built target hello_caps [0 seconds]
start target hello_caps_out
built target hello_caps_out [0 seconds]
end pipeline [0.095 seconds]
```

Take a look at `hello_caps.txt` in the `results` folder and verify it is as you expect.
Expand Down
26 changes: 26 additions & 0 deletions hpc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: 'Deploying Targets on HPC'
teaching: 10
exercises: 2
---


sbatch was not detected. Likely Slurm is not installed. Exiting.


















16 changes: 8 additions & 8 deletions lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tar_make()
✔ skip target penguins_csv_file
✔ skip target penguins_data_raw
✔ skip target penguins_data
✔ skip pipeline [0.079 seconds]
✔ skip pipeline [0.076 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 @@ -87,9 +87,9 @@ tar_make()
```{.output}
✔ skip target penguins_csv_file
✔ skip target penguins_data_raw
start target penguins_data
built target penguins_data [0.023 seconds]
end pipeline [0.121 seconds]
start target penguins_data
built target penguins_data [0.025 seconds]
end pipeline [0.122 seconds]
```

What happened?
Expand Down Expand Up @@ -259,7 +259,7 @@ tar_make()
✔ skip target penguins_csv_file
✔ skip target penguins_data_raw
✔ skip target penguins_data
✔ skip pipeline [0.079 seconds]
✔ skip pipeline [0.076 seconds]
```

Let's invalidate `penguins_data` and run it again:
Expand All @@ -274,9 +274,9 @@ tar_make()
```{.output}
✔ skip target penguins_csv_file
✔ skip target penguins_data_raw
start target penguins_data
built target penguins_data [0.026 seconds]
end pipeline [0.133 seconds]
start target penguins_data
built target penguins_data [0.026 seconds]
end pipeline [0.123 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
41 changes: 21 additions & 20 deletions md5sum.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
"file" "checksum" "built" "date"
"CODE_OF_CONDUCT.md" "c93c83c630db2fe2462240bf72552548" "site/built/CODE_OF_CONDUCT.md" "2023-06-19"
"LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2023-06-19"
"config.yaml" "97cf738871f0133f70da7d938c14bfb2" "site/built/config.yaml" "2023-06-19"
"index.md" "06bbfd5ab0e2353032361b3321342d13" "site/built/index.md" "2023-06-19"
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2023-06-19"
"episodes/introduction.Rmd" "feaacfccab344eb1fa6e702aded97924" "site/built/introduction.md" "2023-06-19"
"episodes/basic-targets.Rmd" "9a431b9a3596cb55c1f62f905cb808a2" "site/built/basic-targets.md" "2023-06-19"
"episodes/cache.Rmd" "6395b6d5b81a029daf9d37a2cb56d6d9" "site/built/cache.md" "2023-06-19"
"episodes/lifecycle.Rmd" "b52fcffdd75504e8579c8a7f1908ade2" "site/built/lifecycle.md" "2023-06-19"
"episodes/organization.Rmd" "ef33426eed3d4e0784a728b5aa670836" "site/built/organization.md" "2023-06-19"
"episodes/packages.Rmd" "2812a10b7ae0e8e0b3e000a5b74f939c" "site/built/packages.md" "2023-06-19"
"episodes/files.Rmd" "f05ed479ce1a0dfdcc14ebcd872c554c" "site/built/files.md" "2023-06-19"
"episodes/branch.Rmd" "b07912f5d8f14eb0e831a6a081ee99f2" "site/built/branch.md" "2023-06-19"
"episodes/parallel.Rmd" "69b941c8fd37a23249e6d16636fb645a" "site/built/parallel.md" "2023-06-19"
"episodes/quarto.Rmd" "a6c2d51f32e4a7e1087b87b211d7a03a" "site/built/quarto.md" "2023-06-19"
"instructors/instructor-notes.md" "df3784ee5c0436a9e171071f7965d3fc" "site/built/instructor-notes.md" "2023-06-19"
"learners/reference.md" "3f06251c1f932e767ae8f22db25eb5a2" "site/built/reference.md" "2023-06-19"
"learners/setup.md" "99a67bca32058e9f70d6d8e405519826" "site/built/setup.md" "2023-06-19"
"profiles/learner-profiles.md" "44d8b9d8aca7963e6577e8c67d23eac0" "site/built/learner-profiles.md" "2023-06-19"
"renv/profiles/lesson-requirements/renv.lock" "28b85c40b8c0d91354d67a70ca6a6005" "site/built/renv.lock" "2023-06-19"
"CODE_OF_CONDUCT.md" "c93c83c630db2fe2462240bf72552548" "site/built/CODE_OF_CONDUCT.md" "2023-07-10"
"LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2023-07-10"
"config.yaml" "5b0ca11806a6d604dd96faa2f669590e" "site/built/config.yaml" "2023-07-10"
"index.md" "06bbfd5ab0e2353032361b3321342d13" "site/built/index.md" "2023-07-10"
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2023-07-10"
"episodes/introduction.Rmd" "feaacfccab344eb1fa6e702aded97924" "site/built/introduction.md" "2023-07-10"
"episodes/basic-targets.Rmd" "9a431b9a3596cb55c1f62f905cb808a2" "site/built/basic-targets.md" "2023-07-10"
"episodes/cache.Rmd" "6395b6d5b81a029daf9d37a2cb56d6d9" "site/built/cache.md" "2023-07-10"
"episodes/lifecycle.Rmd" "b52fcffdd75504e8579c8a7f1908ade2" "site/built/lifecycle.md" "2023-07-10"
"episodes/organization.Rmd" "ef33426eed3d4e0784a728b5aa670836" "site/built/organization.md" "2023-07-10"
"episodes/packages.Rmd" "2812a10b7ae0e8e0b3e000a5b74f939c" "site/built/packages.md" "2023-07-10"
"episodes/files.Rmd" "f05ed479ce1a0dfdcc14ebcd872c554c" "site/built/files.md" "2023-07-10"
"episodes/branch.Rmd" "b07912f5d8f14eb0e831a6a081ee99f2" "site/built/branch.md" "2023-07-10"
"episodes/parallel.Rmd" "69b941c8fd37a23249e6d16636fb645a" "site/built/parallel.md" "2023-07-10"
"episodes/quarto.Rmd" "a6c2d51f32e4a7e1087b87b211d7a03a" "site/built/quarto.md" "2023-07-10"
"episodes/hpc.Rmd" "e7cdd297dd94ecc6d33f218b7dde3bd4" "site/built/hpc.md" "2023-07-10"
"instructors/instructor-notes.md" "df3784ee5c0436a9e171071f7965d3fc" "site/built/instructor-notes.md" "2023-07-10"
"learners/reference.md" "3f06251c1f932e767ae8f22db25eb5a2" "site/built/reference.md" "2023-07-10"
"learners/setup.md" "b4bdd601ab985cf048829f49710df7fc" "site/built/setup.md" "2023-07-10"
"profiles/learner-profiles.md" "44d8b9d8aca7963e6577e8c67d23eac0" "site/built/learner-profiles.md" "2023-07-10"
"renv/profiles/lesson-requirements/renv.lock" "68966b476b940ae0fc805b292f4dc109" "site/built/renv.lock" "2023-07-10"
Loading

0 comments on commit 7799d22

Please sign in to comment.