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 or folder is
- file_path
character: file or folder 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: 20250203 TEST
#> 4: 20250501 TEST
#> 5: 20250711 TEST
#> 6: 20250717 TEST
#> 7: 20250718 TEST
#> 8: 20250721 TEST
#> 9: 20250725 TEST