Software:Quarto
Developer(s) | Posit PBC |
---|---|
Written in | TypeScript, JavaScript, Lua, etc.[1][2] |
Operating system | Linux, MacOS, Microsoft Windows[3] |
License | MIT License (since v1.4), GPLv2 (until v1.3)[4] |
Website | quarto |
Filename extension |
|
---|---|
Type of format | Markdown variant[5] |
Quarto is a free and open-source scientific and technical publishing system[6][7][8] developed by Posit PBC, the developer of RStudio and Tidyverse.[9]
Quarto converts a Quarto document into HTML, PDF, or other document formats, using Pandoc as the core alongside other software such as Jupyter.[10]
Syntax and features
Quarto extends RMarkdown's features[11] and adds native support for Python and Julia, in addition to R. [7][8]
Headers
A header in Quarto is a YAML data block at the top of a .qmd
file, bracketed by ---
.
It is used to control the formats, themes, executable options, and others of the document.[12]
The example below is a Quarto header: [12][13]
--- title: "Quarto (software)" author: "Wikipedia" abstract: "This is the abstract." format: pdf date: format(Sys.time(), "%d %B %Y") date-modified: last-modified params: data: "./data.csv" ---
Titles
Titles in Quarto follows the syntax of Markdown, with hashtags #
leading the title text delimited with one or multiple spaces. The example shows four different levels of titles compared to normal text:
# Header 1 ## Header 2 ### Header 3 #### Header 4 Normal text
Italic and bold fonts
Same as Markdown, a piece of italic text is in a single pair of asterisks *
or underscores _
, while a piece of bold text is in a pair of **
or __
:[14]
Text to be _italicized_ goes inside _a single set of underscores_ or *asterisks*. Text to be **boldfaced** goes inside a __double set of underscores__ or **asterisks**.
Code blocks
The declaration of a code block in Quarto is similar to that in the original Markdown, but with a pair of curly brackets around the language name. The example declares a code block in Quarto:
```{julia} function sum_of_squares(n::Int) sum = 0 for i in 1:n sum += i^2 end return sum end ```
References
- ↑ "quarto-dev/quarto-cli". https://github.com/quarto-dev/quarto-cli.
- ↑ "quarto-dev/quarto". https://github.com/quarto-dev/quarto.
- ↑ "Releases of quarto-dev/quarto-cli". https://github.com/quarto-dev/quarto-cli/releases.
- ↑ "quarto-dev/quarto-web/license.qmd". https://github.com/quarto-dev/quarto-web/blob/main/license.qmd.
- ↑ "Quarto - Markdown Basics". https://quarto.org/docs/authoring/markdown-basics.html.
- ↑ "Quarto". https://quarto.org/.
- ↑ 7.0 7.1 Machlis, Sharon (28 July 2022). "What is Quarto? RStudio rolls out next-generation R Markdown". InfoWorld. https://www.infoworld.com/article/2336031/what-is-quarto-rstudio-quietly-rolls-out-next-generation-r-markdown.html.
- ↑ 8.0 8.1 Machlis, Sharon (6 October 2022). "A beginner's guide to using Observable JavaScript, R, and Python with Quarto". InfoWorld. https://www.infoworld.com/article/2336848/a-beginners-guide-to-using-observable-javascript-r-and-python-with-quarto.html.
- ↑ "Posit". https://posit.co/products/open-source/.
- ↑ "Quarto - About". https://quarto.org/about.html.
- ↑ NCEAS Open Science Synthesis (June 2023). "Literate analysis with Quarto". National Center for Ecological Analysis and Synthesis, University of California, Santa Barbara. https://learning.nceas.ucsb.edu/2023-06-delta/session_03.html.
- ↑ 12.0 12.1 BTEP Coding Club (24 January 2024). "Documenting your data analysis with Quarto". Bioinformatics Training and Education Program, Center for Cancer Research, National Cancer Institute. https://bioinformatics.ccr.cancer.gov/docs/btep-coding-club/CC2024/Quarto/GettingStarted_with_Quarto/.
- ↑ Alexander, Rohan (2023). "Reproducible workflows: Quarto". Telling Stories with Data: With Applications in R. Chapman & Hall/CRC Data Science Series. Boca Raton, FL: CRC Press. pp. 53–62. ISBN 9781032134772. OCLC 1356722977. https://tellingstorieswithdata.com/03-workflow.html#quarto.
- ↑ Jiang, Shiguo (26 January 2024). "Introduction to Quarto and Markdown – Reproducible research and effective teaching using R, Python, Quarto, and Jupyter". Spatial Analysis Laboratory, University at Albany, SUNY. https://www.albany.edu/spatial/talk/quarto/lecture/91-quarto-markdown.html.
Further reading
- Erickson, Richard A.; Archer, Althea A.; Fienen, Michael N. (24 June 2024). "A reproducible manuscript workflow with a Quarto template". Journal of Fish and Wildlife Management. doi:10.3996/JFWM-24-003. https://pubs.usgs.gov/publication/70255803.
- Wickham, Hadley; Çetinkaya-Rundel, Mine; Grolemund, Garrett (2023). "Communicate: Quarto". R for Data Science: Import, Tidy, Transform, Visualize, and Model Data (2nd ed.). Beijing; Sebastopol, CA: O'Reilly. pp. 505–538. ISBN 9781492097402. OCLC 1390607935. https://r4ds.hadley.nz/quarto.
Original source: https://en.wikipedia.org/wiki/Quarto (software).
Read more |