nmfs-opensci / quarto_titlepages

A Quarto extension for making title and cover pages for PDF output.
https://nmfs-opensci.github.io/quarto_titlepages/
Creative Commons Zero v1.0 Universal
115 stars 20 forks source link

YAML error in rendering example.qmd #29

Closed MargaretSiple-NOAA closed 1 year ago

MargaretSiple-NOAA commented 1 year ago

I have had trouble rendering the example.qmd script in quarto_titlepages, apparently because of a YAML error. Here is my system/software info:

I run into this error when rendering example.qmd from my RStudio (using the "Render" button)

Description

When I try to render example.qmd, I get the following YAML error in the Render tab: image

I would troubleshoot more but... don't really know anything about yaml and am slightly scared of it. So this is as much as I've got! I think this may be related to a TeX package I need to get that scrbook format or something.

Steps to replicate

eeholmes commented 1 year ago

Your Quarto version is very old. Current version is 1.2. I think you need to update Quarto. Note if you update RStudio, you should get Quarto version 1.1 which is enough.

Quarto comes with scrbook so you don't need to install that. Quarto should also install tinytex.

eeholmes commented 1 year ago

Also by the way, MixTex-TeX 4.4 (MikTeX 22.3) will likely cause you frustration when rendering PDFs in Quarto. Try installing tinytex. You can install from the R command line. Instructions here: https://yihui.org/tinytex/

MargaretSiple-NOAA commented 1 year ago

OK -- I installed both but I may need to update RStudio as you mentioned to get the quarto update; when I install the newest version it shows up as version 1.2 in my Packages tab, but when I put quarto --version in the console it still gives me 0.9.566. I guess I will update after getting some help from IT.

eeholmes commented 1 year ago

The 1.2 that you see in the Packages tab is the quarto R package; same name, different thing (). For some reason when you installed Quarto, it didn't get rid of the old one. You'll probably have to figure out how to delete/uninstall 0.9.566.