-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
Prework
- I understand and agree to help guide.
- I understand and agree to contributing guide.
- New features take time and effort to create, and they take even more effort to maintain. So if the purpose of the feature is to resolve a struggle you are encountering personally, please consider first posting a "trouble" or "other" issue so we can discuss your use case and search for existing solutions first.
Proposal
Please see the following reprex:
Directory:
├── templates/
│ ├── report.qmd
├── output/
└── _targets.R
_targets.R:
library(targets)
library(tarchetypes)
list(
tar_quarto_rep(
name = report,
path = "templates/report.qmd",
execute_params = data.frame(output_file = c("output/1.pdf", "output/2.pdf"))
)
)templates/report.qmd:
---
title: "Report"
format: pdf
---
Test
After targets::tar_make(), this works using tarchetypes 0.12.0 and yields the following files:
├── templates/
│ ├── report.qmd
├── output/
│ ├── 1.pdf
│ └── 2.pdf
└── _targets.R
But tarchetypes 0.13.0 fails with:
Error:
! Error in tar_make():
[ENOENT] Failed to move 'templates/file15f877229a2.pdf' to 'templates/1.pdf': no such file or directory
(It creates file15f877229a2.pdf in the main directory).
I suppose this regression relates to the fix for #211.
Many thanks in advance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels