Skip to content
R for the Rest of Us Logo

Include data for tests and create RMarkdown templates

This lesson is locked

Get access to all lessons in this course.

If the video is not playing correctly, you can watch it in a new window

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

  • Create a new R Markdown template called “avalanche-report” using use_rmarkdown_template(). For the template_description argument, set it to: “A weekly report of AVALANCHE activities.”

  • Inside the exercises/ folder, there is a file called report.Rmd. Copy and paste its contents into inst/rmarkdown/templates/avalanche- report/skeleton/skeleton.Rmd, which you just created.

  • Re-build the package (build() or Cmd/Ctrl + Shift + B).

  • Create a new R Markdown document using File > New File > R Markdown…. Then, find your template under the “From Template” tab. Open it.

Learn More

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.