Skip to content

Commit

Permalink
close #1889: evaluate the output argument before changing working dir…
Browse files Browse the repository at this point in the history
…ectory in pandoc_convert() (#1890)
  • Loading branch information
krlmlr authored Sep 7, 2020
1 parent 204aa41 commit c3b37f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/pandoc.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ pandoc_convert <- function(input,
# ensure we've scanned for pandoc
find_pandoc()

# evaluate path arguments before changing working directory
force(output)

# execute in specified working directory
if (is.null(wd)) {
wd <- base_dir(input)
Expand Down

0 comments on commit c3b37f2

Please sign in to comment.