Skip to content

Commit

Permalink
Merge pull request #1 from kindlyops/better-errors
Browse files Browse the repository at this point in the history
don't hide document compile failures, fix pygments
  • Loading branch information
statik authored Oct 26, 2021
2 parents df577b9 + 9d05226 commit 33eec7c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN apt-get update && \
poppler-utils \
psutils \
purifyeps \
python3-setuptools \
python3-pygments \
t1utils \
tex-gyre \
Expand Down Expand Up @@ -115,16 +116,16 @@ RUN apt-get install -f -y --no-install-recommends \
RUN install2.r --deps=TRUE remotes \
&& install2.r --deps=TRUE tinytex \
&& install2.r --deps=TRUE formatR \
&& install2.r --deps=TRUE rmarkdown
RUN installGithub.r kindlyops/tufte \
&& install2.r --deps=TRUE rmarkdown \
&& installGithub.r --deps=TRUE kindlyops/ggradar \
&& install2.r --deps=TRUE tint \
&& install2.r --deps=TRUE gridExtra \
&& install2.r --deps=TRUE ggthemes \
&& install2.r --deps=TRUE reshape2 \
&& install2.r --deps=TRUE cowplot \
&& install2.r --deps=TRUE likert \
&& installGithub.r --deps=TRUE haozhu233/kableExtra
&& installGithub.r --deps=TRUE haozhu233/kableExtra \
&& installGithub.r --deps=TRUE hrbrmstr/knitrengines
# versioned rocker images have repo set to MRAN snapshots for reproducibility
#&& install2.r --deps=TRUE kableExtra
#RUN apt-get install -y texlive-xetex
Expand All @@ -139,12 +140,13 @@ RUN installGithub.r kindlyops/tufte \
# ENV PATH=/usr/local/context/tex/texmf-linux-64/bin:/usr/local/context/bin:$PATH
#RUN fc-cache -fv /usr/share/fonts/

# lets do the super insecure thing
# lets do the super insecure thing
# https://tex.stackexchange.com/questions/528634/tlmgr-unexpected-return-value-from-verify-checksum-5
#RUNtlmgr init-usertree
#RUN tlmgr option repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2019/tlnet-final
#RUN tlmgr install roboto fetamont --verify-repo=none || true
ADD install-source-pro.sh /install-source-pro.sh
COPY install-source-pro.sh /install-source-pro.sh
RUN /install-source-pro.sh
ADD compilereport.sh /compilereport.sh
COPY compilereport.sh /compilereport.sh
RUN installGithub.r kindlyops/tufte@custom
ENTRYPOINT ["/compilereport.sh"]
8 changes: 3 additions & 5 deletions compilereport.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash

for f in "$@"
do
echo "Got $f"
R -e "rmarkdown::render('${f}')" || true
for f in "$@"; do
echo "Got $f"
R -e "rmarkdown::render('${f}')"
done

0 comments on commit 33eec7c

Please sign in to comment.