Modern Plain Text Computing
Week 01
August 2025
We want to do our work reproducibly
RStudio at startup with an empty sample project
RStudio schematic overview
RStudio schematic overview
RStudio at startup
RStudio at startup
RStudio at startup
RStudio at startup
RStudio at startup
Tools > Global Options > General
Uncheck “Restore .RData into workspace at startup”
Tools > Global Options > RMarkdown
Uncheck “Show output inline for all R Markdown documents”
Use Quarto to produce and reproduce your work
PDF out
HTML out
Word out
This way of doing things is called a Literate Programming or Notebook approach.
Quarto document
Quarto document annotated
Even when things get complicated, notebook-style documents like Quarto files are great as component parts of larger projects. The more complex your project, the less likely it will straightforwardly fit into a single notebook. The same is true of script-based approaches. The more complex a project, the more you will break it up into smaller, more tractable pieces. You will re-factor it, as programmers say, and make it more modular.
You may find yourself, for example, splitting parts of a complex document up into different pieces. The pieces will contain code that cleans and pre-processes data, runs analyses, and produces some outputs. You can then incorporate those into a Quarto document indirectly. Not by copying and pasting them, but by pointing to those outputs and making use of them to make your tables and figures, and so on.
Desired style | Use the following Markdown annotation |
---|---|
Heading 1 | # Heading 1 |
Heading 2 | ## Heading 2 |
Heading 3 | ### Heading 3 (Actual heading styles will vary.) |
Paragraph | Just start typing |
Bold | **Bold** |
Italic | *Italic* |
Images | [Alternate text for image](path/image.jpg) |
Hyperlinks | [Link text](https://www.visualizingsociety.com/) |
Unordered Lists | |
- First | - First |
- Second. | - Second |
- Third | - Third |
Ordered Lists | |
1. First | 1. First |
2. Second. | 2. Second |
3. Third | 3. Third |
Footnote.¹ | Footnote[^notelabel] |
¹The note’s content. | [^notelabel] The note's content. |
mptc
scratch.qmd
in the mptc
folder