YAML
This lesson is called YAML, part of the Fundamentals of R course. This lesson is called YAML, part of the Fundamentals of R course.
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.
Have any questions? Put them below and we will help you out!
Course Content
34 Lessons
1
The Grammar of Graphics
04:39
2
Scatterplots
03:46
3
Histograms
05:47
4
Bar Charts
06:37
5
Setting color and fill Aesthetic Properties
02:39
6
Setting color and fill Scales
05:40
7
Setting x and y Scales
03:09
8
Adding Text to Plots
07:32
9
Plot Labels
03:57
10
Themes
02:19
11
Facets
03:12
12
Save Plots
02:57
13
Bring it All Together (Data Visualization)
06:42
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.