Improved permanent URL schema for r-universe.dev

[This article was first published on rOpenSci - open tools for open science, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

This post is part of a series of technotes about r-universe, a new umbrella project by rOpenSci under which we experiment with various ideas for improving publication and discovery of research software in R. As the project evolves, we will post updates to document features and technical details. For more information, visit the r-universe project page.

Pretty permanent URLs!

We have improved the URL schema for the r-universe.dev front-end to make it even easier to find and share a link to an R package, article, API, or other resource.

The old URLs will now automatically be redirected to the new locations, so this should be a non-breaking change. But of course we recommend updating your references to link to the new permanent URLs.

Package homepages

The new URLs have the same form as github pages, where the homepage for a package can be found under the root directory of your universe url, i.e. https://{owner}.r-universe.dev/{pkg}. For example the landing packages for some packages look like this:

And so on. The URLs above return package information in html format. Simply append /json to retrieve the same information (and more) in api format:

A few exemptions are the following root paths, which are reserved names for the r-universe front-end sections and cranlike-server, and hence do not refer to a package:

Resources within a package

Resources that are part of a package, such as the pdf/html manual, news file, and preferred citation, can now be found under that package URL. Some examples:

The URLs for these resources are, where possible, consistent with the CRAN website and/or the R local dynamic help server.

Link to sections of a package homepage

One benefit of the new schema is that you can link directly to sections within a package homepage. You can also find these links by clicking on the header of the section on the page.

Feeds and sitemaps

Finally there are some meta APIs that are mainly for non-human consumption:

That’s it for now. As said, in order to not break any existing links, we have created automatic redirects from the old URLs to the new location where possible. If you run into any problems, please open an issue in r-universe-org/help or send a message on the #r-universe channel in the ropensci slack.

To leave a comment for the author, please follow the link and comment on their blog: rOpenSci - open tools for open science.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)