R/software-heritage.R
retrieve_swh.Rd
retrieve content from Software Heritage given a content identifier
retrieve_swh(id, host = "https://archive.softwareheritage.org")
id | a content identifier |
---|---|
host | the domain name for the Software Heritage API |
# \donttest{ id <- paste0("hash://sha256/9412325831dab22aeebdd", "674b6eb53ba6b7bdd04bb99a4dbb21ddff646287e37") retrieve_swh(id)#> [1] "https://archive.softwareheritage.org/api/1/content/sha256:9412325831dab22aeebdd674b6eb53ba6b7bdd04bb99a4dbb21ddff646287e37/raw/"# }