Find project files in a directory.

find_projects(x, user_groups = "public")

Arguments

x

character directory path.

user_groups

character vector of project group names available that can be imported. Defaults to "public".

Value

tibble::tibble() object containing the configuration files and names of projects found in the directory.

Details

Projects that are missing user group information are automatically assigned to the "private" user group. Additionally, note that "admin" is a special user group that can access all projects.

Examples

# find directory with built-in projects
d <- system.file("extdata", "projects", package = "whattodo")

# list projects in directory
find_projects(d)
#> # A tibble: 1 × 3
#>   path                                                      name          status
#>   <chr>                                                     <chr>         <lgl> 
#> 1 /tmp/RtmpZHgwHy/temp_libpath1b1231c4ce8a0/whattodo/extda… Simulated da… TRUE