Skip to content

Commit e651541

Browse files
committed
Work around #230
1 parent 8212136 commit e651541

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description: Function-oriented Make-like declarative pipelines for
99
reproducible pipelines concisely and compactly.
1010
The methods in this package were influenced by the 'targets' R package.
1111
by Will Landau (2018) <doi:10.21105/joss.00550>.
12-
Version: 0.13.2.9002
12+
Version: 0.13.2.9004
1313
License: MIT + file LICENSE
1414
URL: https://docs.ropensci.org/tarchetypes/, https://github.com/ropensci/tarchetypes
1515
BugReports: https://github.com/ropensci/tarchetypes/issues

‎NEWS.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# tarchetypes 0.13.2.9002 (development)
1+
# tarchetypes 0.13.2.9004 (development)
22

33
* Try different paths to look for output files in `tar_quarto_rep()` (#217). Hard to tell if Quarto uses the current working directory or the directory of the source file as the destination for the output, and their policy may have changed in a different version of Quarto.
44
* Add `tar_tangle()` (#226).
5+
* Avoid Quarto parallel rendering bug with a workaround in `tar_quarto_rep()` (#230, @ant-durrant).
56

67
# tarchetypes 0.13.2
78

‎R/tar_quarto_rep_raw.R‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,14 @@ tar_quarto_rep_rep <- function(
426426
extension <- paste0(".", fs::path_ext(destination_basename))
427427
temporary_basename <- basename(tempfile(fileext = extension))
428428
temporary_file <- file.path(temporary_directory, temporary_basename)
429+
# https://github.com/quarto-dev/quarto-cli/issues/6116
430+
temporary_source <- file.path(
431+
dirname(args$input),
432+
basename(tempfile(fileext = paste0(".", fs::path_ext(args$input))))
433+
)
434+
file.copy(args$input, temporary_source)
435+
on.exit(unlink(temporary_source))
436+
args$input <- temporary_source
429437
args$output_file <- temporary_basename
430438
args$execute_params <- execute_params
431439
args$execute_params[["output_file"]] <- NULL

‎inst/WORDLIST‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,3 +322,4 @@ Jupyter
322322
Nanoparquet
323323
ePub
324324
runnable
325+
VSCode

0 commit comments

Comments
 (0)