-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
Auto-generated via `{sandpaper}` Source : d6986b0 Branch : md-outputs Author : GitHub Actions <[email protected]> Time : 2024-12-24 06:14:37 +0000 Message : markdown source builds Auto-generated via `{sandpaper}` Source : 4b0ed0e Branch : main Author : carpenter <[email protected]> Time : 2024-12-24 06:11:26 +0000 Message : Local build seems to work with mult cores
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
options(tidyverse.quiet = TRUE) | ||
source("R/packages.R") | ||
source("R/functions.R") | ||
|
||
tar_plan( | ||
# Load raw data | ||
tar_file_read( | ||
penguins_data_raw, | ||
path_to_file("penguins_raw.csv"), | ||
read_csv(!!.x, show_col_types = FALSE) | ||
), | ||
# Clean data | ||
penguins_data = clean_penguin_data(penguins_data_raw), | ||
# Group data | ||
tar_group_by( | ||
penguins_data_grouped, | ||
penguins_data, | ||
species | ||
), | ||
# Build combined model with all species together | ||
combined_summary = model_glance_orig(penguins_data), | ||
# Build one model per species | ||
tar_target( | ||
species_summary, | ||
model_glance_orig(penguins_data_grouped), | ||
pattern = map(penguins_data_grouped) | ||
) | ||
) |