-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
37 lines (30 loc) · 1018 Bytes
/
Makefile
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
main:
cd exercises; make
./prepend.py
cp -rf exercises/images exercises_sequenced/.
cp -rf exercises/images book/.
cp -rf exercises/data/tiny.csv exercises_sequenced/data/.
cp -rf exercises/data/tiny.csv book/data/.
cp -rf exercises/data/beef_price.csv book/data/.
cp -rf exercises/data/beef_production.csv book/data/.
book: main
cd book; Rscript -e 'bookdown::render_book("index.Rmd")'
test:
Rscript -e 'testthat::test_dir("./tests/")'
lock:
rm renv.lock
Rscript -e "renv::snapshot(type='explicit')"
challenges:
cd ../data-science-challenges/challenges; make
cp -f ../data-science-challenges/challenges/*-assignment.Rmd challenges/.
cp -rf ../data-science-challenges/challenges/images challenges/.
cp -rf ../data-science-challenges/challenges/data challenges/.
clean:
rm -f exercises/*-assignment.Rmd
rm -f exercises/*-solution.Rmd
rm -f exercises_sequenced/*-assignment.Rmd
rm -f book/*-solution.Rmd
rm -fr book/_book
rm -fr book/_book_files
rm -f book/_main.*
.PHONY: clean challenges