codemetar can take the path to the source package root to glean as much information as possible.

codemetar::write_codemeta()
pkg <- "../.."
codemetar::write_codemeta(pkg = pkg)
library("magrittr")
"../../codemeta.json" %>%
  details::details(summary = "codemetar's codemeta.json",
                   lang = "json")

By default most often from within your package folder you'll simply run codemetar::write_codemeta().

file.remove(file.path(pkg, "codemeta.json"))


ropensci/codemetar documentation built on Feb. 24, 2024, 12:34 a.m.