PsyTeachR Book Template Workshop

Author

James Bartlett

Published

July 19, 2024

Workshop Overview

In this informal workshop, I will walk through the steps to use the new PsyTeachR book template booktem to create online books. This uses Quarto - a new version of R Markdown - to combine code with text. You can create a very simple Quarto book within R Studio as standard (I wrote this workshop guide using it) but the PsyTeachR template has more complete settings, placeholders, and conventions for our typical needs.

If you are unfamiliar with the PsyTeachR suite of books, you can see the collection here: https://psyteachr.github.io/.

Some of these examples use the old R Markdown version, so you can see an example of the new Quarto template in the Applied Data Skills book developed by Dr Emily Nordmann and Prof Lisa DeBruine (who also develops the PsyTeachR book template).

When you are writing your book independently, it’s useful to look at the code behind examples to see how they create certain features. For example, Dr Wil Toivo and I are rewriting the Fundamentals of Quantitative Analysis book and you can see our github repository for inspiration.

All of these books are designed to teach data skills as they demonstrate and render code well, but you can use them for any materials using Markdown features. For example, I host the course information for RM1 using the book template.

Once you knit them and push any changes to github, you get a url to link to them like any website. This is great for sharing with students as it’s free and simple to access, and it’s great for you and demonstrating impact as you can share your work with others for #impact.

Intended Learning Outcomes (ILOs)

By the end of the workshop, you will be able to:

  • Create an online book using the booktem R package in RStudio.

  • Use the basic functions of git/github to commit changes and host the book using github pages.

  • Communicate your ideas to your target audience using features such as Markdown formatting, code chunks, referencing, glossaries, and interactive questions.