Could I ask advice for best practice on passing data from one quarto file to another in the RStudio Quarto book template?
The default book template looks like this (_quarto.yml)
project:
type: book
book:
title: "TestTest"
author: "Jane Doe"
date: "08/06/2022"
chapters:
- index.qmd
- intro.qmd
- summary.qmd
- references.qmd
bibliography: references.bib
format:
html:
theme: cosmo
pdf:
documentclass: scrreprt
editor: visual
I put my code and text into the files e.g. index.qmd and intro.qmd. My question is: it appears that the files are independent of each other. If I read in data from a DB into index.qmd then intro.qmd is ignorant of it. So how is it best to pass data from one to the other? I'm loathe to query the database for the same set of data in each of my qmd files.
Any help would be much appreciated. Phil,