title: Two problems rendering a qmd file with quarto_render from R
body: <p>I have a file my_file_to_render.qmd written in RStudio with R.  I am trying to render this file with output html format from a file wrapper.R.  In wrapper.R I am using:</p>
  <pre><code>a_param = &quot;a_name&quot;
  quarto_render(input = &quot;my_file_to_render.qmd&quot;,
         output_file = paste0(&quot;.\\HTML\\my_file_to_render&quot;,&quot;_&quot;,today(), '.html'),
         execute_params =list(pcn = a_param), 
         output_format='html')
  </code></pre>
  <p>I'm encountering two problem which I can't work out.</p>
  <ol>
  <li>I find that the html file does indeed appear in sub-directory 'HTML' as I want however the folder that accompanies my_file_to_render_20220523.html still appears in the working directory.  Hence when I open my_file_to_render_20220523.html pictures and formatting are missing.  Any suggestions?</li>
  <li>I need the folder which stores the formatting to the html file to have the same name.  I need file my_file_to_render_20220523 to look in folder my_file_to_render_20220523 and my_file_to_render_20220522 to find the folder my_file_to_render_20220522.  Currently that isn't working out.</li>
  </ol>
  <p>Could anybody help?</p>
  <p>Phil,</p>