Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 343 Bytes
#' Is this repo a package
#'
#' @inheritParams get_contents
#'
#' @return logical
#' @export
#'
#' @examples
#' is_package_repo("maelle", "convertagd")
#' is_package_repo("maelle", "roregistry")
is_package_repo <- function(owner, repo){
contents <- get_contents(owner, repo)
all(c("NAMESPACE", "DESCRIPTION", "R", "man") %in% contents)
}