Learn R Programming

risk.assessr (version 3.0.1)

list_badges: List badges image URLs from a local README

Description

Scans a local README (Markdown) and returns badge image URLs.

Usage

list_badges(path)

Value

data.frame with badge info

Arguments

path

Character scalar; path to a local README file (e.g., "README.md").

Examples

Run this code
if (FALSE) {
tmp <- tempfile(fileext = ".md")
writeLines(c(
  "# MyPkg",
  "![build](build-status.svg)",
  "![cov](coverage.svg)"
), tmp)
out <- list_badges(tmp)
print(out)
}

Run the code above in your browser using DataLab