List software heritage sources for a content identifier

sources_swh(id, host = "https://archive.softwareheritage.org", ...)

Arguments

id

a content identifier

host

the domain name for the Software Heritage API

...

additional arguments

See also

Examples

# \donttest{ id <- paste0("hash://sha256/9412325831dab22aeebdd", "674b6eb53ba6b7bdd04bb99a4dbb21ddff646287e37") sources_swh(id)
#> identifier #> 1 hash://sha256/9412325831dab22aeebdd674b6eb53ba6b7bdd04bb99a4dbb21ddff646287e37 #> source #> 1 https://archive.softwareheritage.org/api/1/content/sha256:9412325831dab22aeebdd674b6eb53ba6b7bdd04bb99a4dbb21ddff646287e37/raw/ #> date size status md5 sha1 #> 1 2021-10-18 05:04:14 NA 200 <NA> <NA> #> sha256 #> 1 hash://sha256/9412325831dab22aeebdd674b6eb53ba6b7bdd04bb99a4dbb21ddff646287e37 #> sha384 sha512 #> 1 <NA> <NA>
# }