Home  >  Q&A  >  body text

Rmd file weaves to md but cannot convert to HTML

<p>I am new to R and have been knitting recently. rmd file. I can get it without errors. md files and generate figures and tables on my computer, however. md files are never converted to HTML. There are some code blocks that can be a bit laborious, like reading multiple files at the beginning, enriching packages with paths, and converting long tables into graphs, but the entire code runs within a few minutes without any issues. So I'm not sure if these are. The only reason why md files are not converted to HTML. <br /><br />I have been able to do this before in others. rmd file, even this file (only once or twice), I tried reinstalling the latest R (4.3.1), RStudio (released in July 2023), updating pandoc (3.1.6) and all R packages, and downloaded every software update on my PC, to no avail. Any insight on where things might be hanging up would be greatly appreciated!</p><p><code></code></p>
P粉831310404P粉831310404445 days ago514

reply all(1)I'll reply

  • P粉155128211

    P粉1551282112023-08-02 00:05:08

    What's probably happening here is that the "tax" blocks are still being evaluated and you need to wait longer for them to complete. To avoid long runs, you can outsource these blocks of data processing code into a standalone R script and save the results using save() or saveRDS(). In Rmd, then use load() or readRDS() to read the data.

    reply
    0
  • Cancelreply