-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
has_parameters <- function(input) {
res <- quarto::quarto_inspect(input)
if (res$engines == "jupyter") {
return(
"parameters" %in% res$fileInformation[[input]]$codeCells$metadata$tags
)
} else if (res$engines == "knitr") {
return(
"params" %in% names(res$fileInformation[[input]]$metadata)
)
} else {
return(FALSE)
}
}The logic is to help find the information in the inspect result.
knitrdocuments having aparamsmetadata are usually meant to be parameterised reportsjupyterdocuments having a cell will tagparametersare meant to be parameterised reports
Metadata
Metadata
Assignees
Labels
No labels