From 0b4ca15f02bde14ee6228e58b4803681bcc31c2d Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 19 Jan 2020 19:26:28 -0500 Subject: rmakrdown fixes and .Rmd handler --- .local/bin/compiler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/compiler') diff --git a/.local/bin/compiler b/.local/bin/compiler index 4b5432f..a124d5f 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); rmarkdown::render('$file', quiet=TRUE)" | R -q --vanilla ;; + *\.[rR]md) Rscript -e "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" ;; *\.tex) textype "$file" ;; *\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; *config.h) sudo make install ;; -- cgit v1.3.1