Repository for the demos in the "Hello, Quarto!" talk

Overview

hello-quarto-demo

Repository for the demos in the "Hello, Quarto!" talk

Software

  • RStudio:

    • Version: Current release -- RStudio 2022.07.0+548 "Spotted Wakerobin" Release (34ea3031089fa4e38738a9256d6fa6d70629c822, 2022-07-06) for macOS Mozilla/5.0 (Macintosh; Intel Mac OS X 12_4_0) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36
    • Theme: rsthemes::a11y-light
  • R 4.2.1

  • MousePose - Mouse Clicks on

  • Desktop - Background single color Quarto blue (#75aadb)

  • Quarto - 1.0.36

Steps

Demo 1 - Share / flexibility in formats:

  • Open hello.Rmd with source editor -> knit

  • Change to visual editor -> knit

  • Close file -> change file type to .qmd -> open (make sure visual editor) and render

  • Change output: html_document to format: html -> render

  • Click on Render on save

  • Change to format: pdf -> save to render -> then change back to format: html

  • Add chunk option echo: false to the first chunk using tab completion -> save to render

  • Delete echo: false from first chunk -> turn off echo from document YAML -- type execute:, return, e, tab completion to choose echo and false.

    execute:
        echo: false
  • Add alt text to figure in second code chunk -> save to render

    #| fig-alt: |
    #|   Scatterplot of bill length vs. flipper length for three 
    #|   species of penguins. The relationship is positive and 
    #|   moderately strong. The three species are identified on 
    #|   the plot with points with different colors and shapes, 
    #|   revealing three clusters.
  • Change to format: revealjs -> save to render

  • Remove execute / echo to show they're off by default -> save to render

  • Change to format: html

  • Add index.qmd with File > New Quarto Document

    ---
    title: "Welcome"
    format: html
    editor: visual
    ---
    
    Welcome to the demo site for the "Hello, Quarto!" talk at rstudio::conf(2022)!
  • Add _quarto.yml

    project:
      type: website
    
    website:
      title: "Quarto"
      navbar:
        left:
          - index.qmd
          - hello.qmd
  • Relaunch projects with File > Recent projects > choose most recent

  • Show new Build tab

  • Preview site, show _site folder

  • Make one change in hello.qmd, watch it update the site

  • Add freeze to _quarto.yml

    execute: freeze: true

  • From terminal: quarto publish quarto-pub

Demo 2 - Collaborate:

Starting setup: hello-quarto-demo@main cloned, Terminal open already cd'd into the repo. Zoom screenshare show url. Mousepose.

  • Orient to JupyterLab
  • Open Mine's example site, quarto preview
  • Open website in separate window (narrow windows)
  • PAUSE recording - copy pre-made .ipynb (New Terminal > cp hello_in_python.ipynb hello-quarto-demo, delete code comments. Also open _quarto.yml)
  • Talk through and execute notebook chunks
  • Add .ipynb to _quarto.yml
  • View website - new page is added to website
  • Add fig captions
#| fig-cap: "Flipper and bill length for penguins"
  • Add margin
#| column: margin   
  • quarto convert to .qmd
  • Turn this into slides

Demo 3 - Teach / teaching things:

  • Features that are useful for teaching:

    • Add chalkboard

      format: 
        revealjs:
          chalkboard: true
    • Show hamburger menu outline and print to PDF

    • multiplex: Slides / scroll for audience

    • Add code line highlighting to plotting chunk

      #| code-line-numbers: "|1-2|3|4|5-13|14"
    • Auto linking code to docs

      format: 
        html:
          code-link: true
    • Add tabsets

  • Features that are useful for learning:

    • if teaching with rstudio, it comes with everything, and people can just get started
    • visual editor -- Julie will say more
    • yaml errors
  • Features that are useful for research: quarto journal

Demo 4 - Reimagine / visual editor:

Prep: pull hello-quarto-demo@collab, open index.qmd and delete visual in yml. Mousepose.

Goal: to show you the visual editor, and also some additional features of Quarto that are integrated in the Visual Editor

  • open project in RStudio
  • Open Mine's index.qmd
  • switch to visual editor
  • Now let's edit:
    • Type "Quarto unifies and extends the RMarkdown ecosystem."
  • pasting text from a google doc! Formatting stays:

[**Quarto**](https://quarto.org) is a new, open-source, scientific and technical publishing system that makes the process of creating and collaborating dramatically better. It\'s a **really powerful** tool for research teams, since we can use the same workflow for reproducible data analyses and for and for new ways of contributing to science. See the [Quarto Gallery](https://quarto.org/docs/gallery/) for examples and learn more through [Quarto at rstudio::conf(2022)](https://quarto.org/docs/blog/posts/2022-06-21-rstudio-conf-2022-quarto/).


Next we'll explore Quarto with the tidyverse and data from the[ palmerpenguins](https://allisonhorst.github.io/palmerpenguins) R package.
  • Add image:

    • using the visual editor, Insert menu: images/horst_quarto_meteor.png

    • add caption: The Quarto meteor crosses the night sky. We liked the idea of Quarto in the night sky and worked with Allison Horst to bring these ideas to life. Allison made several other images with Quarto in the night sky, including illustrations depicting teach, collaborate, share, and reimagine.

    • add alt text: An illustrated meteor with the quarto logo crosses the night sky

    • close dialogue -> save to render >

    • double click on image and change width to 400, tab to change height

    • switch over to source editor to show how this info is recorded

  • Add citations:

      1. Command - / to add a doi: 10.1371/journal.pone.0090081
      1. @ to search my Zotero library
  • Also: Call-outs

    • Final tip: To learn more
    • Check out our slides
  • ONE LAST THING about Quarto that aren't Visual Editor Specific but I'd like to show you:

  • Add extension:

filters:
   - lightbox
lightbox: auto   
You might also like...

Code examples for my TypeScript Static Analysis Hidden Gems talk. 💎

Code examples for my TypeScript Static Analysis Hidden Gems talk. 💎

TypeScript Static Analysis Hidden Gems Code Code samples for the talk, formed from my template-typescript-node-package. ✨ 👉 Slides available here! 👈

Nov 2, 2022

The repository contains the list of awesome✨ & cool web development beginner-friendly✌️ projects!

The repository contains the list of awesome✨ & cool web development beginner-friendly✌️ projects!

Web-dev-mini-projects The repository contains the list of awesome ✨ & cool web development beginner-friendly ✌️ projects! Web-dev-mini-projects ADD AN

Jan 3, 2023

Github Repository for the resources shown in my 8 JavaScript Pro Tips Tutorial in Youtube

Github Repository for the resources shown in my 8 JavaScript Pro Tips Tutorial in Youtube

Part 1 - JavaScript Pro Tips - Learn with Sumit Table of Contents How to run Contact How to run Different lessons taught in the Youtube Tutorial are o

Dec 28, 2022

Primary repository for all information related to Fast-Floward Bootcamp session 1

Primary repository for all information related to Fast-Floward Bootcamp session 1

⏩ Fast Floward Welcome to Fast Floward! We are excited to have you here. This repository is where you will find all content, resources, and links for

Dec 23, 2022

This Repository consist of Daily learning JS, Assignments, coding challenge, projects, references, tutorial

This Repository consist of Daily learning JS, Assignments, coding challenge, projects, references, tutorial

💛 A Tour of JavaScript This Repository consist of Daily learning, Assignments, coding challenge, projects, references, tutorial. 👩‍💻 👨‍💻 alert(

Sep 7, 2022

This repository contains a basic example on how to set up and run test automation jobs with CircleCI and report results to Testmo.

CircleCI test automation example This repository contains a basic example on how to set up and run test automation jobs with CircleCI and report resul

Dec 23, 2021

Personal repository for adventjs.dev

🎄 My adventjs commented solutions 🎄 adventjs.dev is a platform developed by where you can practice your JavaScript skills via challenges as an adven

Dec 3, 2022

Runs prettier on a repository's code

prettier-docker-ga Run prettier on your code from Github workflows. Sample Github workflow (this assumes there is a prettier.config.js file in your re

Oct 18, 2022
Comments
  • execute: freeze: true

    execute: freeze: true

    @mine-cetinkaya-rundel , for our hand-off to work nicely you'll need to add to _quarto.yml:

    execute
      freeze: true
    

    and create the freeze folder so that I can run quarto preview from Jupyter without R installed. I can emphasize that, and discuss how freeze works in Jupyter

    This PR should show the new end-point of your first Demo ("Share")

    opened by jules32 0
Owner
Mine Cetinkaya-Rundel
Professor at Duke University + Developer Educator at RStudio
Mine Cetinkaya-Rundel
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Diferentes demos em relação ao uso do Playwright para realização de palestras sobre o assunto

?? Playwright [Demos] - Palestra: Testes Inteligentes, Automatizados e Rápidos em Cross-Browser com Playwright! Repositório responsável pelas demos re

Glaucia Lemos 47 Oct 20, 2022
This repo has demos, content and documentation of javascript concepts and syntax, in their simplest form. Contribute by sharing your understanding of javascript! Hacktoberfest Accepted!

javascript-documentation open-source hacktoberfest2022 Submit your PR to this javascript-documentation repo ?? ?? ❗ This repo has some of my javascrip

Austin Lynch 7 Nov 2, 2022
In this project, you can create optional rooms and people can talk in the rooms

CodeTalk In this project, you can create optional rooms and people can talk in the rooms. Login and Registration page Login page welcomes us. If you d

Nazlı 3 Mar 12, 2022
Examples for Evolllution talk about omni api's

These are examples for the 2022 Evolution Conference. These are only intended for learning puposes so you can learn and develop your own tool set. P

null 3 Jun 3, 2022
Talk about Azure SQL + Prisma

Talk - Power Up Your BackEnd Applications with Serverless Architecture & Azure SQL A demo related with the talk Power Up Your BackEnd Applications wit

Glaucia Lemos 10 Sep 13, 2022
Clubhouse is a new type of social network based on voice—where people around the world come together to talk, listen and learn from each other in real-time.

Awesome Clubhouse The clubhouse is a new type of social network based on voice—where people around the world come together to talk, listen and learn f

Ehsan Ghaffar 27 Nov 9, 2022
Talk to anyone connected to your network, be it LAN or your hotspot. Doesn't require internet.

Apophis CLI to talk to anyone connected to your network, be it LAN or your hotspot. Doesn't require internet. Installation Make sure you have NodeJS (

Saurav Pal 3 Oct 16, 2022