Get file from Github
get_file_from_gh.Rd
Get file from Github
Usage
get_file_from_gh(
owner = getOption("pipfun.ghowner"),
repo,
branch = "main",
file_path,
creds = NULL
)
Arguments
- owner
character: owner of repo
- repo
character: repository name
- branch
character: branch where the file is
- file_path
character: file path
- creds
list. Basically, it is
get_github_creds()
Examples
get_file_from_gh(owner = getOption("pipfun.ghowner"),
repo = "pip_info",
file_path = "releases.csv",
branch = "releases")
#> Git credentials are missing or invalid in non-interactive mode.
#> release identity
#> <int> <char>
#> 1: 20240326 PROD
#> 2: 20241101 PROD
#> 3: 20241105 PROD
#> 4: 20250203 TEST