What is the top level of a quarto project?

I read on a web page "Using Shiny with Quarto for Interactivity – datanovia" that to create a shiny - quarto program I have to insert a sentence in the top level of a quarto project.
This is the sentence: quarto add quarto-ext/shinylive
I do not know what is the top level of a quarto project.
Will inlcuding this statement allow me to create and run a resentation?

1 Like

That is a great question!

Once you are in your Quarto project, you run quarto add quarto-ext/shinylive in the Terminal. This installs the Shinylive extension in the project.

Then, you add this to the Quarto YAML, at the top of your Quarto .qmd file:

filters:
  - shinylive

This enables the extension in your Quarto document.

1 Like

Thanks. Could you point to a website that shows how to create a quarto project in RStudio?

1 Like

You can create a new Quarto project in RStudio by clicking File > New Project > New Directory > Quarto Project and then giving it a name and saving it in your desired folder.

If you would rather create one from the Terminal, you can follow the guide on the Quarto website: Project Basics – Quarto

1 Like

I recorded it in case it's helpful. Let me know if you have any other questions! Create a Quarto project in RStudio