Sourcing an R script for an entire Quarto project #10491
-
DescriptionI'd like to import/source an R script that contains helper functions for an entire Quarto project. Sourcing a script in a code chunk at the top level of
Tested on macOS 13.6.7 and Quarto v. 1.5.56. Is there a way to import a script for an entire project? I was hoping for something similar to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, you need to load it in every document. This has already been discussed: |
Beta Was this translation helpful? Give feedback.
No, you need to load it in every document.
Note that to avoid duplicating the code, you can put the code cell in a Quarto document and use the include shortcode in every document.
Each Quarto documents are computed independently.
This has already been discussed: