ls_github: do an ls of a github repo

View source: R/github_utils.R

ls_githubR Documentation

do an ls of a github repo

Description

Specify repo, path, and github reference (master, sha, etc.) and get back an ls of that directory, including download links.

Usage

ls_github(repository, path = "", ref = "master")

Arguments

repository

character(1) formatted as 'user/repo_name' from Github

path

character(1) The path in the repo to ls on

ref

character(1) The github reference (tag, sha, branch) to run the ls on. Default is master.

Value

A tibble with columns including:

  • name

  • path

  • size

  • download_url

  • type (file or dir)

Examples

ls_github('TheEconomist/covid-19-excess-deaths-tracker',
          'output-data/excess-deaths')


seandavi/sars2pack documentation built on May 13, 2022, 3:41 p.m.