Getting metadata about R-universe #224
-
Is it possible to get metadata about the entire R-universe programmatically? I am trying to see how many unique packages are hosted on R-universe but not on CRAN. In particular, I would like to use available.packages(contrib.url("https://ropensci.r-universe.dev")) But I'm not aware of an endpoint for the entire R-universe. Alternatively, is there an easy way to get a vector of all the maintainers in R-universe? (aside from web scraping). Then I could just iterate over everyone like: lapply(
list("https://ropensci.r-universe.dev", "https://tidyverse.r-universe.dev"),
function(x) available.packages(contrib.url(x))
) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Packages in universes may overlap, so there is no such thing as a single repository with all packages. Each one is unique. You can get a list of all universes like this: df <- jsonlite::stream_in(url("https://r-universe.dev/stats/universes"))
df$universe |
Beta Was this translation helpful? Give feedback.
Packages in universes may overlap, so there is no such thing as a single repository with all packages. Each one is unique.
You can get a list of all universes like this: