summaryrefslogtreecommitdiffstats
path: root/.local/bin/compiler
diff options
context:
space:
mode:
authorBryan Jenks <bryanjenks@protonmail.com>2019-12-19 03:24:55 -0800
committerLuke Smith <luke@lukesmith.xyz>2019-12-19 06:24:55 -0500
commita6934232f73466cfa3c84d01550631b73d3b47c3 (patch)
treedcec1502ac66c1c146c57020c417baebc2f60ebd /.local/bin/compiler
parent29bee71d652cd62190b4934817ee227a6f9340d2 (diff)
downloadeibhear-a6934232f73466cfa3c84d01550631b73d3b47c3.tar.gz
eibhear-a6934232f73466cfa3c84d01550631b73d3b47c3.tar.zst
eibhear-a6934232f73466cfa3c84d01550631b73d3b47c3.zip
Improve and more efficient RMarkdown Compilation (#435)
The `rmakrdown::` portion makes sure that no other functions mask render, and its calling it from the required rmarkdown package, and the addition of the quiet portion isnt redundant with the R -q flag, i tested script and in Vim it reduces how much text and verbose messaging comes from pandoc at the bottom to about 3 lines.
Diffstat (limited to '.local/bin/compiler')
-rwxr-xr-x.local/bin/compiler2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler
index 201064e..4b5432f 100755
--- a/.local/bin/compiler
+++ b/.local/bin/compiler
@@ -26,7 +26,7 @@ case "$file" in
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;
*\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;;
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
- *\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;;
+ *\.rmd) echo "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" | R -q --vanilla ;;
*\.tex) textype "$file" ;;
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
*config.h) sudo make install ;;