print("Hello from R!")
[1] "Hello from R!"
1 + 2
[1] 3
Welcome to the world of Quarto, where creating beautiful and interactive documents has never been simpler! Whether you’re a seasoned writer, a data enthusiast, or just starting out, Quarto empowers you to craft compelling content that informs, engages, and stands out. Today, we’ll embark on a journey to create your first Quarto document, guiding you through every step from setup to publication.
Open RStudio and navigate to File > New File > Quarto Document. Here comes the fun part - choosing your format and theme!
For this tutorial, we’ll create an HTML document with the “default” theme. Once you’ve made your selections, click “Create” to generate your new Quarto document.
Quarto leverages Markdown, a simple yet powerful language for writing. Think of it as plain text on steroids, allowing you to format headings, paragraphs, quotes, and even code, all through intuitive symbols.
Welcome to the wondrous world of Markdown within Quarto, where crafting compelling content becomes a dance between text and code! This tutorial equips you with the essential tools to weave narrative, integrate R, and create stunning documents.
Markdown embraces simplicity, using symbols to format your text beautifully. Imagine it as a secret code for writers:
#
for main titles, ##
for subtitles, and so on.**bold**
for bold and _italics_
for emphasis.*
or -
for unordered lists and 1.
or a.
for ordered ones.>
quotes.Quarto’s magic lies in marrying text and R code seamlessly. Encapsulate your R magic within ```{r}
chunks:
print("Hello from R!")
[1] "Hello from R!"
1 + 2
[1] 3
Click the “Run” button, and voila! R executes the code, displaying the output right within your document.
Markdown offers more than just the basics. Spice up your content with these gems:
[text](link)
.
.| Column 1 | Column 2 |
, adding rows and formatting as needed.Explore Quarto’s documentation for a deeper dive:
Remember: Experimentation is key! Practice, explore, and unleash the power of Markdown and Quarto.