Open MiguelRodo opened 5 months ago
From this link for the project key:
project
render
resources
serve
preview
From this link for the website key:
website
From this link for the book key:
book
From this link for the manuscript key:
manuscript
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:
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.
From this link for the
project
key:render
resources
(seems fine with a string)serve
andpreview
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:
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.