From 960c014f81225b94e861f074b173299d54df0b10 Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Tue, 16 Feb 2016 14:09:23 -0500 Subject: [PATCH] Get Rscript from the environment rather than hardcoded --- _plugins/knit.r | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_plugins/knit.r b/_plugins/knit.r index 0d0f1ce..30466ea 100755 --- a/_plugins/knit.r +++ b/_plugins/knit.r @@ -1,4 +1,5 @@ -#!/usr/bin/Rscript +#!/usr/bin/env Rscript + library(rmarkdown) library(bookdown) library(methods)