Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/cran/list_all_packages.R
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
#!/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", "Title", "Description")] | |||||
dbjson <- jsonlite::toJSON(db) | |||||
print(dbjson) | |||||
No newline at end of file |