getRawLinksFromGithubDir: Get raw links from GitHub directory

View source: R/getRawLinksFromGithubDir.R

getRawLinksFromGithubDirR Documentation

Get raw links from GitHub directory

Description

/codegetRawLinksFromGithubDir get the list of links leading to raw files contained in a GitHub repository (recursively).

Usage

getRawLinksFromGithubDir(repo, dir, ext = ".*")

Arguments

repo

Character string; user and repo names.

dir

Character string; directory name.

ext

Character string; the extension of the files. Default: ".*" (every file in the directory).

Value

A character vector with the raw links of all the files.

Examples

my_repo <- "bovee/fattyacids"
my_dir <- "reference_data"
my_ext <- "tsv"
raw_links <- getRawLinksFromGithubDir(
    repo = my_repo, dir = my_dir, ext = my_ext
)

sdgamboa/misctoolsr documentation built on May 4, 2022, 12:33 p.m.