is_using_quarto: Check is a directory is using quarto

View source: R/quarto.R

is_using_quartoR Documentation

Check is a directory is using quarto

Description

This function will check if a directory is using quarto by looking for

  • ⁠_quarto.yml⁠ at its root

  • at least one .qmd file in the directory

Usage

is_using_quarto(dir = ".", verbose = FALSE)

Arguments

dir

The directory to check

verbose

print message about the result of the check

Examples

dir.create(tmpdir <- tempfile())
is_using_quarto(tmpdir)
file.create(file.path(tmpdir, "_quarto.yml"))
is_using_quarto(tmpdir)
unlink(tmpdir, recursive = TRUE)

quarto documentation built on Sept. 11, 2024, 8:13 p.m.