10 Dicas para Quarto

01. Caminhos com here()

# install.packages("here")
here::here()
[1] "/Users/clente/Documents/demo-quarto"
here::here("styles.css")
[1] "/Users/clente/Documents/demo-quarto/styles.css"

02. Bônus! Trocar idioma

No _quarto.yml

lang: pt

03. Chunks com #|

Um gatinho bonitinho

Um gatinho bonitinho

Podemos usar knitr::convert_chunk_header()

04. Citações no Visual Editor

Segundo Turing (1937), computadores são possíveis. Segundo Stoica, Riederer, e Chaintreau (2018), redes sociais não são muito legais. Tidyverse: Wickham et al. (2019) e Wickham (2023). Here: Müller (2020).

knitr::write_bib(c("here", "tidyverse"), "packages.bib")

05. Include ou child

Um chunk externo

1 + 1
[1] 2

06. Usando parâmetros

params$data
[1] "2023-03-22"

07. Inline + Formatação

A base dos pinguins tem 344 linhas. Os pinguins estudados na base são Adelie, Gentoo e Chinstrap. O Pi é mais ou menos 3.14 e isso é Pi reais: R$ 3,14.

08. Personalizar templates

styles.css

09. Mermaid

flowchart LR
  A[Hard edge] --> B(Round edge)
  B --> C{Decision}
  C --> D[Result one]
  C --> E[Result two]

sequenceDiagram
  participant Alice
  participant Bob
  Alice->>John: Hello John, how are you?
  loop Healthcheck
    John->>John: Fight against hypochondria
  end
  Note right of John: Rational thoughts <br/>prevail!
  John-->>Alice: Great!
  John->>Bob: How about you?
  Bob-->>John: Jolly good!

10. Font Awesome

quarto install extension quarto-ext/fontawesome

Referências

Müller, Kirill. 2020. here: A Simpler Way to Find Your Files. https://CRAN.R-project.org/package=here.
Stoica, Ana-Andreea, Christopher Riederer, e Augustin Chaintreau. 2018. "Algorithmic Glass Ceiling in Social Networks: The effects of social recommendations on network diversity". Em, 923932. WWW ’18. Republic; Canton of Geneva, CHE: International World Wide Web Conferences Steering Committee. https://doi.org/10.1145/3178876.3186140.
Turing, A. M. 1937. "On Computable Numbers, with an Application to the Entscheidungsproblem". Proceedings of the London Mathematical Society s2-42 (1): 230–65. https://doi.org/10.1112/plms/s2-42.1.230.
Wickham, Hadley. 2023. tidyverse: Easily Install and Load the Tidyverse. https://CRAN.R-project.org/package=tidyverse.
Wickham, Hadley, Mara Averick, Jennifer Bryan, Winston Chang, Lucy D’Agostino McGowan, Romain François, Garrett Grolemund, et al. 2019. "Welcome to the tidyverse". Journal of Open Source Software 4 (43): 1686. https://doi.org/10.21105/joss.01686.