Determine if GitHub Repository Has a file

repo_has_file(repo, file = "DESCRIPTION", ...)

repo_has_description(repo, ...)

has_remote_dcf(repo, ...)

Arguments

repo

Github repository in the order or user/repo

file

file to check if exists

...

arguments passed to gh

Value

A character

Examples

repo_has_file("muschellij2/fslr", "DESCRIPTION")
#> [1] TRUE