Skip to content

Commit

Permalink
Add entrypoint for compiling any RMarkdown arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Elliot Murphy <[email protected]>
  • Loading branch information
statik committed Apr 24, 2021
1 parent 4733191 commit ef3725d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,6 @@ RUN installGithub.r kindlyops/tufte \
#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
RUN /install-source-pro.sh
RUN /install-source-pro.sh
ADD compilereport.sh /compilereport.sh
ENTRYPOINT ["/compilereport.sh"]
8 changes: 8 additions & 0 deletions compilereport.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

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

0 comments on commit ef3725d

Please sign in to comment.