-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_all.sh
37 lines (28 loc) · 1012 Bytes
/
run_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Script purpose
# --------------
# Run whole project.
set -euo pipefail
# prepare raw data
Rscript scripts/prepare_multiomic_data.R
# run report
R -e "rmarkdown::render('reports/a_solution/01-intro_to_tidyverse.Rmd', output_format='md_document')"
R -e "rmarkdown::render('reports/a_solution/02-intro.Rmd', output_format='md_document')"
R -e "rmarkdown::render('reports/a_solution/03-tidytuesday.Rmd', output_format='md_document')"
R -e "rmarkdown::render('reports/a_solution/04-bio.Rmd', output_format='md_document')"
R -e "rmarkdown::render('reports/a_solution/05-exercise.Rmd', output_format='md_document')"
# move markdown and images
mv reports/a_solution/*.md book/
cp -r reports/a_solution/*_files book/
rm -r reports/a_solution/*_files
cp -r reports/a_solution/images book/
# copy README
cp README.md book/
# build book
jupyter-book build book/
# update github
git add .
git commit -m "re-run whole project"
git push origin main
# update webpage
ghp-import -n -p -f book/_build/html
echo "Done!"