Skip to content
Draft
14 changes: 9 additions & 5 deletions .github/workflows/build-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ name: build-book
jobs:
build-book:
runs-on: ubuntu-latest
container:
image: mlrorg/mlr3-book
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- name: install and update texlive
run: /usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt update -y -qq
- run: /usr/bin/sudo DEBIAN_FRONTEND=noninteractive apt install tidy texlive texlive-fonts-extra texlive-extra-utils -y
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: animint2

- name: Render book
run: R --vanilla < render.R
Expand Down
Binary file removed chapters/Ch01-figures/unnamed-chunk-3-1.png
Binary file not shown.
Binary file removed chapters/Ch01-figures/unnamed-chunk-4-1.png
Binary file not shown.
2 changes: 1 addition & 1 deletion chapters/Ch09/Ch09-Montreal-bikes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ animint(
time=list(variable="month", ms=5000))
```

## Chapter summary and exercises {#exercises}
## Chapter summary and exercises {#Ch09-exercises}

Exercises:

Expand Down
29 changes: 2 additions & 27 deletions chapters/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,6 @@ book:
background: "#f8f9fa"
chapters:
- index.qmd
- part: "animint2 basics"
chapters:
- Ch02/Ch02-ggplot2.qmd
- Ch03/Ch03-showSelected.qmd
- Ch04/Ch04-clickSelects.qmd
- Ch05/Ch05-sharing.qmd
- Ch06/Ch06-other.qmd
- Ch07/Ch07-limitations.qmd
- part: "Advanced examples"
chapters:
- Ch08/Ch08-WorldBank-facets.qmd
- Ch09/Ch09-Montreal-bikes.qmd
- Ch10/Ch10-nearest-neighbors.qmd
- Ch11/Ch11-lasso.qmd
- Ch12/Ch12-SVM.qmd
- Ch13/Ch13-poisson-regression.qmd
- Ch14/Ch14-PeakSegJoint.qmd
- Ch15/Ch15-Newton.qmd
- Ch16/Ch16-change-point.qmd
- Ch17/Ch17-k-means-clustering.qmd
- Ch18/Ch18-neural-networks.qmd
appendices:
- Ch99/Ch99-appendix.qmd
- contribute.qmd

bibliography: refs.bib

Expand Down Expand Up @@ -101,15 +77,14 @@ format:

knitr:
opts_chunk:
cache: true
cache.lazy: false
cache: false
dpi: 100
fig.width: 8
fig.height: 5
out.width: "100%"
split: true
R.options:
knitr.graphics.auto_pdf: true
animint2.chromote_sleep_seconds: 3
width: 80
datatable.print.nrows: 10
datatable.print.topn: 2
Expand Down
4 changes: 2 additions & 2 deletions render.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
options(repos="http://cloud.r-project.org")
for(p in c("penaltyLearning","future.apply","maps","lars","LambertW","kernlab","data.table","quarto"))if(!requireNamespace(p))install.packages(p)
remotes::install_github("animint/animint2")
for(p in c("penaltyLearning","future.apply","maps","lars","LambertW","kernlab","data.table","quarto","chromote","magick"))if(!requireNamespace(p))install.packages(p)
remotes::install_github("animint/animint2@screenshot-in-rmd")
unlink("chapters/_book", recursive = TRUE)
quarto::quarto_render("chapters")
## copy data viz to site.
Expand Down