r-multiverse / help

Discussions, issues, and feedback for R-multiverse
https://r-multiverse.org
MIT License
2 stars 2 forks source link

Making easier to inspect the r-universe #4

Closed llrs closed 4 months ago

llrs commented 4 months ago

Many thanks @wlandau for starting this.

I'm not sure I understand how everything works together, but I think that a human should be able to inspect the r(elease)-universe easily to know what is in it and what is pulled (from where).

Currently the manifest of packages is a very long line of json. It would be make it more human readable if it were prettified to something like this (or better):

[
{"package":"askpass","url":"https://github.com/r-lib/askpass","branch":"*release"},
{"package":"bit","url":"https://github.com/truecluster/bit","branch":"*release"},
.
.
.
]

But perhaps I misunderstood and just inspecting packages/* would be enough?

wlandau commented 4 months ago

That's a great idea, and I see jsonlite::write_json() has an argument called "pretty" which will do this automatically. Opened a PR in https://github.com/r-releases/help/issues/4.

wlandau commented 4 months ago

Now fixed. The JSON at https://github.com/r-releases/r-releases.r-universe.dev/blob/main/packages.json is pretty.