Skip to content

Commit

Permalink
switch pandoc_citeproc_exec() to match rmarkdown:::pandoc_citeproc()
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmbarrett committed Aug 6, 2019
1 parent 9199c03 commit f287be2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/use_pandoc.R
Expand Up @@ -129,6 +129,9 @@ stop_if_pandoc_not_installed <- function() {
}

pandoc_citeproc_exec <- function() {
paste0(rmarkdown::pandoc_exec(), "-citeproc")
citeproc_path <- paste0(rmarkdown::pandoc_exec(), "-citeproc")
if (file.exists(citeproc_path)) return(citeproc_path)

"pandoc-citeproc"
}

0 comments on commit f287be2

Please sign in to comment.