Nothing
#' Assess a package for the presence of a url field where bugs can be reported.
#'
#' @eval roxygen_assess_family(
#' "has_bug_reports_url",
#' "a character value containing the BugReports field contents")
#'
#' @export
assess_has_bug_reports_url <- function(x, ...) {
UseMethod("assess_has_bug_reports_url")
}
# assign a friendly name for assess column
attr(assess_has_bug_reports_url,"column_name") <- "has_bug_reports_url"
attr(assess_has_bug_reports_url,"label") <- "presence of a bug reports url in repository"
#' @export
assess_has_bug_reports_url.default <- function(x, ...) {
pkg_metric(class = "pkg_metric_has_bug_reports_url", {
length(x$bug_reports_url)
})
}
#' Score a package for the presence of a bug report url
#'
#' @eval roxygen_score_family("has_bug_reports_url")
#'
#' @return A logical value indicating whether the package has a BugReports field
#' filled in
#'
#' @export
metric_score.pkg_metric_has_bug_reports_url <- function(x, ...) {
as.numeric(x > 0)
}
attributes(metric_score.pkg_metric_has_bug_reports_url)$label <-
"A binary indicator of whether a package links to a location to file bug reports."
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.