Get access to all lessons in this course.
- Welcome to Fundamentals of R
- Update Everything
- Start a New Project
-
Data Wrangling and Analysis
- The Tidyverse
- Pipes
- select()
- mutate()
- filter()
- summarize()
- group_by() and summarize()
- arrange()
- Create a New Data Frame
- Bring it All Together (Data Wrangling)
-
Data Visualization
- The Grammar of Graphics
- Scatterplots
- Histograms
- Bar Charts
- Setting color and fill Aesthetic Properties
- Setting color and fill Scales
- Setting x and y Scales
- Adding Text to Plots
- Plot Labels
- Themes
- Facets
- Save Plots
- Bring it All Together (Data Visualization)
-
Quarto
- Quarto Overview
- YAML
- Text
- Code Chunks
- Tips for Working with Quarto
- Bring It All Together (Quarto)
-
Wrapping Up
- An Important Workflow Tip
Fundamentals of R
YAML
This lesson is locked
This lesson is called YAML, part of the Fundamentals of R course. This lesson is called YAML, part of the Fundamentals of R course.
If the video is not playing correctly, you can watch it in a new window
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Go into the YAML and change the title to "My Penguins Report".
Change the output format to HTML by changing
format: docx
toformat: html
.Render again and open the
report.html
to make sure that your changes show up.
Learn More
If you are really curious about why YAML is called YAML, here's the definitive answer.
See all the different export formats that you can use.
You need to be signed-in to comment on this post. Login.
Rob Schoen
October 25, 2023
My YAML has a fourth field (editor: visual). Did I inadvertently create that when I created the quarto file? Also, when I render the html file, I get an html file that pops up in my browser, but I don't see report in the Files or the Viewer (bottom right pane). What am I missing?
Libby Heeren Coach
October 25, 2023
Hey, Rob! Yep, the editor: visual call that you see in your yaml likely came from leaving the "Use visual markdown editor" checkbox checked while in the New Quarto Document set-up screen. No worries, though, that editor: visual call won't break anything! It just tells the file to open with the visual editor up instead of the source editor. Here's a quick video showing me creating a new document and where the html file gets saved.
PAUL JEBARAJ
January 19, 2024
Hi Dave, struggling to get pdf output. Any help would be much appreciated please. The below is what I get: ==> quarto preview Untitled.qmd --to pdf --no-watch-inputs --no-browse
processing file: Untitled.qmd
output file: Untitled.knit.md
pandoc to: latex output-file: Untitled.tex standalone: true pdf-engine: xelatex variables: graphics: true tables: true default-image-extension: pdf
metadata documentclass: scrartcl classoption: - DIV=11 - numbers=noendperiod papersize: letter header-includes: - '\KOMAoption{captions}{tableheading}' block-headings: true title: My Penguins Report
running xelatex - 1 This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode
updating tlmgr
updating existing packages finding package for scrartcl.cls ERROR: Your TexLive version is not updated enough to connect to the remote repository and download packages. Please update your installation of TexLive or TinyTex.
Underlying message: Local TeX Live (2021) is older than remote repository (2023). Cross release updates are only supported with update-tlmgr-latest(.sh/.exe) --update See https://tug.org/texlive/upgrade.html for details.
Error: Your TexLive version is not updated enough to connect to the remote repository and download packages. Please update your installation of TexLive or TinyTex.
Underlying message: Local TeX Live (2021) is older than remote repository (2023). Cross release updates are only supported with update-tlmgr-latest(.sh/.exe) --update See https://tug.org/texlive/upgrade.html for details.
David Keyes Founder
January 19, 2024
Hmm, I've never seen this. Does the answer in this Stack Overflow thread help?
PAUL JEBARAJ
January 19, 2024
Thanks David. From the link you provided, used:
tinytex::tlmgr_update() tlmgr update --all --self tinytex::reinstall_tinytex()
All sorted! Much appreciated.