Skip to contents

Get File List from GitHub

Usage

github_files(repo, dir = "", recursive = FALSE)

Arguments

repo

The URL of the repository (in the format "username/repo" or "https://github.com/username/repo")

dir

an optional directory name to search

recursive

whether to search the files recursively

Value

a data frame of files

Examples

# \donttest{
  github_files("scienceverse/papercheck")
#>                name             path size          ext   type
#> 1     .Rbuildignore    .Rbuildignore  168 rbuildignore   file
#> 2           .github          .github    0       github    dir
#> 3        .gitignore       .gitignore  183    gitignore config
#> 4       DESCRIPTION      DESCRIPTION 1583                file
#> 5           LICENSE          LICENSE   48                file
#> 6        LICENSE.md       LICENSE.md 1077           md   text
#> 7         NAMESPACE        NAMESPACE 1051                file
#> 8           NEWS.md          NEWS.md 2842           md   text
#> 9                 R                R    0                 dir
#> 10        README.md        README.md  379           md   text
#> 11             data             data    0                 dir
#> 12         data-raw         data-raw    0                 dir
#> 13             inst             inst    0                 dir
#> 14              man              man    0                 dir
#> 15 papercheck.Rproj papercheck.Rproj  462        rproj config
#> 16          pkgdown          pkgdown    0                 dir
#> 17          profile          profile    0                 dir
#> 18            tests            tests    0                 dir
#> 19        vignettes        vignettes    0                 dir
# }