This function clones the 'shinyAppPkgs' GitHub repository, extracts the list of branches along with their last update time, and then returns this information as a tibble. The repository is cloned to a temporary directory, which is removed after the function executes.
Value
A tibble with three columns: 'source', 'branch_name', and 'updated', listing the source of the branch, the branch name, and the last updated date.
How it works
The function operates in several steps:
It saves the current working directory to revert back to it later
It clones the 'shinyAppPkgs' repository from GitHub into a temporary directory
It lists all branches of the cloned repository
It separates the branch
name
s intosource
andbranch_name
It cleans up by deleting the temporary directory and restoring the original working directory
Note that the function currently does not use the regex
parameter to filter
branches. This parameter can be implemented in future versions to allow branch
filtering based on regular expressions.
Examples
list_apps()
#> # A tibble: 55 × 2
#> branch last_updated
#> <chr> <dttm>
#> 1 01_whole-app-game 2024-07-25 19:14:02
#> 2 02.1_shiny-app 2024-07-25 19:20:46
#> 3 02.2_movies-app 2024-07-25 19:25:24
#> 4 02.3_proj-app 2024-07-25 19:28:08
#> 5 03.1_description 2024-07-25 19:40:09
#> 6 03.2_rproj 2024-07-25 19:54:08
#> 7 03.3_create-package 2024-07-25 19:59:58
#> 8 04_devtools 2024-07-25 20:16:35
#> 9 05_roxygen2 2024-07-26 05:02:57
#> 10 06.1_pkg-exports 2024-07-26 05:27:53
#> # ℹ 45 more rows
list_apps(regex = "tests")
#> # A tibble: 6 × 2
#> branch last_updated
#> <chr> <dttm>
#> 1 11_tests-specs 2024-07-26 19:07:11
#> 2 12.1_tests-fixtures 2024-07-26 19:18:13
#> 3 12.2_tests-helpers 2024-07-26 19:34:52
#> 4 12.3_tests-snapshots 2024-07-26 19:45:10
#> 5 13_tests-modules 2024-07-26 20:09:02
#> 6 14_tests-system 2024-07-26 20:23:38