Skip to content

Commit 6561a91

Browse files
committed
hacks to fix targets problem
1 parent 6297649 commit 6561a91

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

R/targets_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ make_external_names_and_scores <- function() {
273273
command = {
274274
readRDS(external_scores_path) %>%
275275
group_by(forecaster) %>%
276-
tar_group()
276+
targets::tar_group()
277277
},
278278
iteration = "group",
279279
garbage_collection = TRUE

_targets.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
covid_hosp_explore:
2-
script: covid_hosp_explore.R
3-
store: covid_hosp_explore
4-
use_crew: yes
2+
script: covid_hosp_explore.R
3+
store: covid_hosp_explore
4+
use_crew: yes
5+
seconds_timeout: 86400
56
flu_hosp_explore:
6-
script: flu_hosp_explore.R
7-
store: flu_hosp_explore
8-
use_crew: yes
7+
script: flu_hosp_explore.R
8+
store: flu_hosp_explore
9+
use_crew: yes
910
flu_hosp_prod:
10-
script: flu_hosp_prod.R
11-
store: flu_hosp_prod
12-
use_crew: yes
11+
script: flu_hosp_prod.R
12+
store: flu_hosp_prod
13+
use_crew: yes
1314
covid_hosp_prod:
14-
script: covid_hosp_prod.R
15-
store: covid_hosp_prod
16-
use_crew: yes
15+
script: covid_hosp_prod.R
16+
store: covid_hosp_prod
17+
use_crew: yes

extras/targets-common.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tar_option_set(
4646
# Set default crew controller.
4747
# https://books.ropensci.org/targets/crew.html#heterogeneous-workers
4848
resources = tar_resources(
49-
crew = tar_resources_crew(controller = "main_controller")
49+
crew = tar_resources_crew(controller = "main_controller", seconds_timeout = 24 * 60 * 60)
5050
)
5151
)
5252

man/manage_S3_forecast_cache.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renv.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,7 @@
26362636
},
26372637
"targets": {
26382638
"Package": "targets",
2639-
"Version": "1.4.0",
2639+
"Version": "1.3.2",
26402640
"Source": "Repository",
26412641
"Repository": "RSPM",
26422642
"Requirements": [
@@ -2659,7 +2659,7 @@
26592659
"vctrs",
26602660
"yaml"
26612661
],
2662-
"Hash": "0be50803a2b160210f4f64792e6a29a5"
2662+
"Hash": "eea57f5c8154c12cf13467c6ffb919de"
26632663
},
26642664
"testthat": {
26652665
"Package": "testthat",

0 commit comments

Comments
 (0)