actions
actions copied to clipboard
Create a workflow to render Rmd files
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 = ...)
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!
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.
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