diff --git a/_plugins/knit.r b/_plugins/knit.r index c6cfd26..0d0f1ce 100755 --- a/_plugins/knit.r +++ b/_plugins/knit.r @@ -4,7 +4,7 @@ library(bookdown) library(methods) args <- commandArgs(trailingOnly = TRUE) -path <- temp.Rmd +path <- args[1] if (!file.exists(path)) { stop("Can't find path ", path, call. = FALSE)