-
Help
DescriptionI read through this discussion but am experiencing a slightly different outcome. I am able to get the rendered html to the right output directory, but my I have my output directory defined in
(I tried changing it to match the recommendation here, but that just put the html in the when i run this target, it successfully creates an HTML document (although it creates nested folders in
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Almost, but like you mention later, the output file ends up in
I have never agreed with Quarto's policy around output file paths. When resolving relative paths, Quarto anchors off the parent directory of the source file, whereas most other tools anchor off the current working directory. Plus, there's the error "--output option cannot specify a relative or absolute path" whenever you try to explicitly set an output path (I forget where that Quarto issue thread lives). |
Beta Was this translation helpful? Give feedback.
Almost, but like you mention later, the output file ends up in
_quarto_output/R/reports/explore-data.html
instead of_quarto_output/explore-data.html
. You'll see this if you runquarto render R/reports/explore-data.qmd
in the command line, so that part is a Quarto issue.targets
needs to know the location of the output HTML file because it needs to watch the file for changes, and it's tricky when you have a project-leveloutput-dir
in_quarto.yml
and a non-project-levelpath = "R/reports/explore-data.qmd"
. 083ca89 accounts foroutput-dir
in this particular case. Even though the actual output …