diff options
| author | Bryan Jenks <bryanjenks@protonmail.com> | 2019-12-19 03:24:55 -0800 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-12-19 06:24:55 -0500 |
| commit | a6934232f73466cfa3c84d01550631b73d3b47c3 (patch) | |
| tree | dcec1502ac66c1c146c57020c417baebc2f60ebd /.local/bin | |
| parent | 29bee71d652cd62190b4934817ee227a6f9340d2 (diff) | |
| download | eibhear-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')
| -rwxr-xr-x | .local/bin/compiler | 2 |
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 ;; |
