Return a tbl_df of information for outsider module(s) for a given code-sharing service. If repo is NULL, will return details on all available modules.

module_details(repo = NULL, service = c("github", "bitbucket", "gitlab"))

Arguments

repo

Vector of one or more outsider module repositories, default NULL.

service

Code-sharing service, e.g. GitHub

Value

tbl_df

Details

Module details in tibble format include: repository name (user/repo), last time repo was updated, number of watchers (or stars in the case of GitLab), url to web presence, names of tagged versions.

Examples

library(outsider)
# return table of ALL available modules on GitHub
# NOT RUN - takes too long
if (FALSE) {
  (available_modules <- module_search())
}

# look-up specific modules
repo <- 'dombennett/om..goodbye.world'
(suppressWarnings(module_details(repo = repo))) # no module exists, expect warning
#> # A tibble: 0 × 0
repo <- 'dombennett/om..hello.world'
(module_details(repo = repo))
#> # A tibble: 1 × 7
#>   repo    program  details   versions updated_at          watchers_count url    
#>   <chr>   <chr>    <chr>     <chr>    <dttm>                       <int> <chr>  
#> 1 domben… hello w… Template… latest   2019-08-19 09:30:00              0 https:…