Skip to contents

Find project files in a directory.

Usage

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 × 3
#>   path                                                              name  status
#>   <chr>                                                             <chr> <lgl> 
#> 1 C:/Users/Daniel Wismer/AppData/Local/Temp/Rtmpchjhef/temp_libpat… Exam… TRUE  
#> 2 C:/Users/Daniel Wismer/AppData/Local/Temp/Rtmpchjhef/temp_libpat… Exam… TRUE  
#> 3 C:/Users/Daniel Wismer/AppData/Local/Temp/Rtmpchjhef/temp_libpat… Sout… TRUE