You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_quarto.yml files in non-website Quarto projects are not initially selected, or even available, in the Publish wizard #10995
RStudio Edition : Desktop
RStudio Version : 2022.06.0 Build 305
OS Version : macOS 12.3
R Version : 3.6.3, but this issue also occurs on 4.*
Steps to reproduce the problem
Create a new Quarto project — just an ordinary project, not a website. The default Quarto project in the IDE includes name-of-quarto-project.qmd and _quarto.yml.
Click the Publish button, select RStudio Connect (maybe optional), and select "Publish document with source code"
Describe the problem in detail
The _quarto.yml file should be selected — it contains project-level metadata. However, it's not even visible in the file pane.
To add it, I have to click "Add More…" and select it, at which point the .qmd file is modified to add it as a resource_file.
Describe the behavior you expected
A _quarto.yml file should always be included in Quarto deployments if it is present in the project directory.
@toph-allen Thank you for raising this! I can reproduce this in 2022.02.1 as well. However, it looks like this isn't specific to Quarto—the same thing happens in other project types for files beginning with _ (underscore). I'll mark this for review as part of our ongoing development of RStudio.
Note: Tagging this with the quarto label because of the impact this has on Quarto projects, even though they're not the cause.
@ronblum Yeah, the quarto tag makes sense -- I'm not sure what the expected behavior is for other types of project files beginning with _, but for Quarto, including the project file is expected.
I'm a little uncertain about _quarto.yml in subdirectories, based on the conversation in PR #11201. Should they always be included? I tried with _metadata.yml at the root and quarto.yml in a subdirectory. The metadata YAML gets pick up, but not the Quarto one.
I'm not sure. I think _quarto.yml should be unique, and identifies the quarto project, whereas there can be _metadata.yml files in sub directories of the project. But I don't know enough about quarto to be sure.
Any document rendered within the project directory will automatically inherit the metadata defined at the project level.
Note that the project file contains both global options that apply to all formats (e.g. toc and bibliography) as well as format-specific options.
You can include additional metadata linked via metadata-files and provide per-directory options by adding a _metadata.yml file to any sub-directory of your project. Options provided within these files use the same schema as _quarto.yml, and are merged with any options you’ve already provided in _quarto.yml.
My understanding is that _quarto.yml should be unique and in the home directory of the project - affect global project. _metadata.yml can be added to specific sub-directories and affect that sub-directory only.
Activity
ronblum commentedon Apr 19, 2022
@toph-allen Thank you for raising this! I can reproduce this in 2022.02.1 as well. However, it looks like this isn't specific to Quarto—the same thing happens in other project types for files beginning with
_(underscore). I'll mark this for review as part of our ongoing development of RStudio.Note: Tagging this with the
quartolabel because of the impact this has on Quarto projects, even though they're not the cause.toph-allen commentedon Apr 19, 2022
@ronblum Yeah, the
quartotag makes sense -- I'm not sure what the expected behavior is for other types of project files beginning with_, but for Quarto, including the project file is expected.ronblum commentedon Jun 2, 2022
I'm a little uncertain about
_quarto.ymlin subdirectories, based on the conversation in PR #11201. Should they always be included? I tried with_metadata.ymlat the root andquarto.ymlin a subdirectory. The metadata YAML gets pick up, but not the Quarto one.ronblum commentedon Jun 2, 2022
Question for @romainfrancois (I forgot to tag you).
romainfrancois commentedon Jun 6, 2022
I'm not sure. I think
_quarto.ymlshould be unique, and identifies the quarto project, whereas there can be_metadata.ymlfiles in sub directories of the project. But I don't know enough about quarto to be sure.jthomasmock commentedon Jun 6, 2022
https://quarto.org/docs/projects/quarto-projects.html#shared-metadata
My understanding is that
_quarto.ymlshould be unique and in the home directory of the project - affect global project._metadata.ymlcan be added to specific sub-directories and affect that sub-directory only.ronblum commentedon Jun 6, 2022
@jthomasmock Thank you for the reference and explanation!
Simple way to verify the
_metadata.ymlbehavior:posts/_metadata.ymlromainfrancois commentedon Jun 7, 2022
Thanks @jthomasmock