Page MenuHomeSoftware Heritage

list_all_packages.R
No OneTemporary

list_all_packages.R

#!/usr/bin/Rscript
# This R script calls the buildin API to get list of
# all the packages of R and their description, then convert the API
# response to JSON string and print it
db <- tools::CRAN_package_db()[, c("Package", "Version", "Packaged")]
dbjson <- jsonlite::toJSON(db)
print(dbjson)

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 12:12 PM (1 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241579

Event Timeline