Skip to content

Commit 88a7b8b

Browse files
committed
clean: add targets prune command
1 parent a559434 commit 88a7b8b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ explore-flu:
3535

3636
explore: explore-covid explore-flu update-site netlify
3737

38+
prune: prune-covid-prod prune-flu-prod prune-covid-explore prune-flu-explore
39+
40+
prune-covid-prod:
41+
export TAR_PROJECT=covid_hosp_prod; export BACKTEST_MODE=TRUE; Rscript -e "targets::tar_prune()"
42+
43+
prune-flu-prod:
44+
export TAR_PROJECT=flu_hosp_prod; export BACKTEST_MODE=TRUE; Rscript -e "targets::tar_prune()"
45+
46+
prune-covid-explore:
47+
export TAR_PROJECT=covid_hosp_explore; Rscript -e "targets::tar_prune()"
48+
49+
prune-flu-explore:
50+
export TAR_PROJECT=flu_hosp_explore; Rscript -e "targets::tar_prune()"
51+
3852
commit-covid:
3953
cd ../covid19-forecast-hub; \
4054
git pull --rebase --autostash origin main; \

0 commit comments

Comments
 (0)