Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9314135
list_all_packages.R
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
295 B
Subscribers
None
list_all_packages.R
View Options
#!/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
Details
Attached
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
Attached To
rDLS Listers
Event Timeline
Log In to Comment