Skip to content

Instantly share code, notes, and snippets.

@BartlettJE
BartlettJE / generate_rmd_entries.R
Last active March 20, 2025 14:23
We wanted to create a series of .Rmd files based on a spreadsheet. This will be passed to a Quarto book/blog, but we wanted to generate entries based on responses to an online form. It took a surprising amount of time to find solutions to creating .Rmd files, not just creating dynamic reports or knitting multiple .Rmd files.
library(glue)
library(tidyverse)
library(readxl)
# load form of terms and definitions
# dat <- read_xlsx("terms.xlsx")
# for reproducibility, you can test it on a generated version
dat <- tibble(file_name = c("sotl","impact"),
term = c("SoTL", "Impact"),