Hubverse packages are now distributed on the R-universe #30
Replies: 1 comment
-
I have created release for the following packages and auto-populated them with changes since the last release. In many cases, this means that all pull requests were included. https://github.com/hubverse-org/hubAdmin/releases/tag/v1.1.1 note that there were some packages that are still in development phase and thus do not have an "official" release (but they still exist on the R-universe). |
Beta Was this translation helpful? Give feedback.
-
Last month, I opened a discussion to formalize R package release process guidelines and it has been approved by the core devs of the Hubverse development team. The most visible change is how you will install hubverse packages. You should no longer use
remotes::install_github()
.How to use the new R-Universe repository
To install ALL hubverse packages, you can use:
An equivalent command for this is to use the
{universe}
package to register the hubverse-org repository, which prepends the hubverse repository URL to your existing list of repositories.Pro tip: If you place
universe::add("hubverse-org")
in your.Rprofile
, the hubverse repository will be registered every time you start R.Below will detail aspects of the rollout including timeline and next steps.
Timeline
This rollout is separated in two parts:
main
branch as development (19 September 2024)Part 1: using the R Universe for package deployment
This was implemented in early August and you can find a dashboard of the package builds on https://hubverse-org.r-universe.dev/builds.
Part 1 Actions Required
install.packages()
instead ofremotes::install_github()
.Note
To install ALL of the hubverse packages at once, you can install the
hubverse
package, which contains allthe other package as dependencies
remotes::install_github("hubverse-org/hubverse")
install.packages("hubverse", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
If your scripts install individual packages, you can use the list below as a guide for updating your scripts:
ℹ️ Installation Guide for hubverse packages
remotes::install_github("hubverse-org/hubValidations")
install.packages("hubValidations", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubExamples")
install.packages("hubExamples", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubData")
install.packages("hubData", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubEvals")
install.packages("hubEvals", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubAdmin")
install.packages("hubAdmin", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubVis")
install.packages("hubVis", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubUtils")
install.packages("hubUtils", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubCI")
install.packages("hubCI", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
remotes::install_github("hubverse-org/hubEnsembles")
install.packages("hubEnsembles", repos = c("https://hubverse-org.r-universe.dev", "https://cran.r-project.org")))
Part 1 Hub Administrators
hubCI::use_hub_github_action()
command [edit 2024-11-22: function names corrected]Part 1 Hub Devs
install.packages()
from our r-universeAdditional_repositories: https://hubverse-org.r-universe.dev
to yourDESCRIPTION
Part 2: Setting
main
branch as developmentThis part is for hubverse developers. The workflow will not change drastically other than using a development version number and a couple of extra steps to make a release, which is already done in our schemas and actions repositories. The rationale for this is that it is a common workflow for many software packages.
Switch will happen on: 19 September, 2024
Part 2 Actions Required
Zhian
Hubverse Devs
r-universe
by addingextra-repositories
tosetup-r
:- uses: r-lib/actions/setup-r@v2 with: install-r: false use-public-rspm: true + extra-repositories: 'https://hubverse-org.r-universe.dev'
Hub Admins
Hub Modellers
Beta Was this translation helpful? Give feedback.
All reactions