Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure _quarto.yml always has an array when it should #508

Open
MiguelRodo opened this issue Mar 13, 2024 · 0 comments
Open

Ensure _quarto.yml always has an array when it should #508

MiguelRodo opened this issue Mar 13, 2024 · 0 comments

Comments

@MiguelRodo
Copy link
Collaborator

MiguelRodo commented Mar 13, 2024

From this link for the project key:

  • Done:
    • render
  • Checked:
    • resources (seems fine with a string)
  • The serve and preview sub-keys don't seem likely to have any array keys.

From this link for the website key:

From this link for the book key:

From this link for the manuscript key:

TO BE CONSIDERED: are we only using this to set the output-dir? If so, using regex might be A LOT simpler.

Ya, we literally do:

image

It was written just for this function:

.projr_yml_quarto_set_output_dir <- function(path) {
yml_quarto <- .projr_yml_quarto_get()
yml_quarto[["project"]][["output-dir"]] <- path
.projr_yml_quarto_set(yml_quarto)
}

Then we just try use regex to figure this out. This is going to turn into a buggy nightmater otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant