-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding arbitrary fields to packages.json #530
Comments
Yes you can put anything in there. We just parse it with The easiest way to store custom metadata is put it in the For example have a look at: df <- jsonlite::fromJSON("https://ropensci.r-universe.dev/api/packages")
names(df) What is the sort of metadata you would want to put in the |
We were thinking about something like lifecycle designations/badges (https://www.reconverse.org/lifecycle.html). While you can put custom info in |
Yeah I guess we can add that. It's not entirely trivial because in the workflow, the syncing of registries is completely separate from building packages and deploying. But we can probably find a way. Would you like |
|
Potential idea: Could a universe's
packages.json
contain arbitrary fields? This way someone managing a collection of packages could use thepackages.json
file as a single source of truth for information, such as whether the packages are deprecated, their lifecycle stage, or other topics.At its simplest all this would require is some documentation of fields that R-Universe would ignore, or designate an
extra-metadata
that could serve arbitrary JSON or standard prefix for fields (x-
). However, it would be even better if this information could be passed on through the R-Universe API, so someone building on top of the API would have access to additional fields. We were discussing reviving the RECON website's package page and thought the best way to do it would be if we could just power all the content from the https://reconhub.r-universe.dev API endpoints.The text was updated successfully, but these errors were encountered: