Skip to content

Refresh proj detection criteria #2133

@jennybc

Description

@jennybc

usethis/R/proj.R

Lines 188 to 195 in 8bd4ad5

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions