Replies: 2 comments 2 replies
-
For some reason, <p>This report is rendered with variable = mpg.</p>
<div class="cell">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(ggplot2)</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">ggplot</span>(mtcars, <span class="fu">aes</span>(.data[[params<span class="sc">$</span>variable]], hp)) <span class="sc">+</span></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_point</span>()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output-display">
<p><img src="report_files/figure-html/unnamed-chunk-1-1.png" class="img-fluid" width="672"></p>
</div>
</div> |
Beta Was this translation helpful? Give feedback.
-
So the reason the figure isn't showing up is that I can reproduce what you are seeing using just Quarto: quarto::quarto_render(input = "report_dir/report.qmd", output_file = "temporary_file_in_current_working_dir.html")
|
Beta Was this translation helpful? Give feedback.
-
Help
Description
This is a direct continuation of #144. If we have a report in a subdirectory that has
self-contained: true
, the pipeline will succeed, but the resulting.html
file does not include CSS and plots.file structure:
_targets.R
:report.qmd
Applying
self-contained: true
was necessary to circumvent the issue of the generated reports incorrectly pointing all to the same figures #157.Beta Was this translation helpful? Give feedback.
All reactions