actions icon indicating copy to clipboard operation
actions copied to clipboard

Create a workflow to render Rmd files

Open spsanderson opened this issue 2 years ago • 2 comments

I'm not finding what I'm looking for as I search around but is it possible to create a workflow to do something like rmarkdown::render(input = ...)

spsanderson avatar Jun 14 '22 17:06 spsanderson

There is an example workflow about Rendering one or more Rmarkdown files when they change and commit the result.

https://github.com/r-lib/actions/tree/v2-branch/examples#render-rmarkdown

You have other examples for rmarkdown like building a bookdown website there too that you can adapt.

Steps are:

  • Checkout project
  • Install pandoc
  • Install R
  • Install your dependencies (listing in workflow file, using renv, or using a DESCRIPTION file for example)
  • Render the document (calling rmarkdown::render())
  • Commit the resutls, or deploy your outputs

If you think that stuff are missing from current example, I can try update or adapt them for a more specific use case. thanks!

cderv avatar Jun 15 '22 10:06 cderv

Thanks for the link, I greatly appreciate it.

Sent from my iPhone www.spsanderson.com

On Jun 15, 2022, at 6:07 AM, Christophe Dervieux @.***> wrote:

 There is an example workflow about Rendering one or more Rmarkdown files when they change and commit the result.

https://github.com/r-lib/actions/tree/v2-branch/examples#render-rmarkdown

You have other examples for rmarkdown there too that you can adapt.

Steps are:

Checkout project Install pandoc Install R Install your dependencies (listing in workflow file, using renv, or using a DESCRIPTION file for example) Render the document (calling rmarkdown::render()) Commit the resutls, or deploy your outputs If you think that stuff are missing from current example, I can try update or adapt them for a more specific use case. thanks!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

spsanderson avatar Oct 11 '22 07:10 spsanderson

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

github-actions[bot] avatar Nov 04 '22 13:11 github-actions[bot]