R/pkg_ref_cache_source_control_url.R

Defines functions pkg_ref_cache.source_control_url

#' Cache package's Source Control URL
#'
#' @inheritParams pkg_ref_cache
#' @family package reference cache
#' @return a \code{pkg_ref} object
#' @keywords internal
#' @noRd
pkg_ref_cache.source_control_url <- function(x, name, ...) {
  grep(
    "(github\\.com|bitbucket\\.org|gitlab\\.com)",
    x$website_urls,
    value = TRUE)
}
pharmaR/riskmetric documentation built on April 30, 2024, 5:14 p.m.