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 = "wheretowork")

# list projects in directory
find_projects(d)
#> # A tibble: 3 x 3
#>   path                                                  name              status
#>   <chr>                                                 <chr>             <lgl> 
#> 1 C:/Users/marc.edwards/AppData/Local/Temp/RtmpUHgCYd/~ Example GeoTIFF ~ TRUE  
#> 2 C:/Users/marc.edwards/AppData/Local/Temp/RtmpUHgCYd/~ Example Shapefil~ TRUE  
#> 3 C:/Users/marc.edwards/AppData/Local/Temp/RtmpUHgCYd/~ South Western On~ TRUE