Rmarkdown as a function - multiple html outputs.

Hello,

I need to compile multiple rmakrdown outputs from my R project. I have found some kind of solution here:

Since my Rmarkdown document is about ~1.5k lines I don't find

markobj <- c(Convert Rmarkdown file with 1.5k lines to strict format)

as optimal way to solve my problem. I don't say it's not usable - I could write program converting Rmarkdown text to required format - I just think that there is a better solution.

Thanks for advice.

Can you be more precise on what you want to do ? I am not sure to follow.

I need to compile multiple rmakrdown outputs from my R project

  • Do you have those Rmarkdown writtent ?
  • Do you want to generate multiple report from one template with modified content depending on some variables ?

I could write program converting Rmarkdown text to required format

  • Why do you want to convert Rmarkdown to test ?

From some guess I am doing on your use case, maybe parametrized report is what you are looking for: Chapter 15 Parameterized reports | R Markdown: The Definitive Guide
Did you try that already ?

You can also use Rmd template to fill with a templating framework (like whisker or brew) to generate a Rmd file content from R code.

Please precise your work case if I am not in the right place.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.