SATVILab / projr

Streamline R projects
https://satvilab.github.io/projr/
Other
1 stars 1 forks source link

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

Open MiguelRodo opened 5 months ago

MiguelRodo commented 5 months ago

From this link for the project key:

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.