|
proj_crit <- function() { |
|
rprojroot::has_file(".here") | |
|
rprojroot::is_rstudio_project | |
|
rprojroot::is_r_package | |
|
rprojroot::is_git_root | |
|
rprojroot::is_remake_project | |
|
rprojroot::is_projectile_project |
|
} |
In particular, this should include quarto.
Here are the criteria built-in to rprojroot. I can't remember why usethis doesn't just use those defaults or if there even is a reason for that.
https://rprojroot.r-lib.org/reference/criteria.html
is_quarto_project is the main one that really feels like an oversight. Another intriguing candidate: is_renv_project.
usethis/R/proj.R
Lines 188 to 195 in 8bd4ad5
In particular, this should include quarto.
Here are the criteria built-in to rprojroot. I can't remember why usethis doesn't just use those defaults or if there even is a reason for that.
https://rprojroot.r-lib.org/reference/criteria.html
is_quarto_projectis the main one that really feels like an oversight. Another intriguing candidate:is_renv_project.