Rhumba: a faster R distribution
Leveraging Mamba and conda-forge for R-package management
CRAN is the official package manager for the R ecosystem. Unfortunately, simple operations such as creating new environments or installing packages with it can be very time-consuming due to the fact that packages are compiled on the user’s machine.
Rhumba is a solution that leverages the Mamba engine to install R packages, offering ready-to-use compiled binaries. Thanks to the heroic effort of the
conda-forge community to build thousands of Conda R packages we could significantly decrease the time it takes to install a package and start using it.
For a simple comparison, installing the
devtools package with Rhumba on my laptop takes under 30 seconds, while doing it with CRAN on the same conditions takes 12 minutes.
Rhumba runs on Linux and macOS and we’re working on expanding it to Windows soon.
This will bootstrap a base R environment including Rhumba.
You can also simply install Rhumba with Mamba:
mamba install rhumba
First set the channel you want to get your packages from (these are the default):
Then install packages:
Just make sure your package is available on the channel you’ve set before. For example, if you’re using
conda-forge make sure your package is available there, you can search for it here. To see all the packages that are currently installed in your environment:
And to learn more about what Rhumba can offer you and how you can configure it, check the wiki!
All of this was only made possible because of the great work by Wolf Vollprecht and all the Mamba contributors! We are immensely grateful to the
conda-forge community for providing such an amazing collection of built R packages.
About the author
My name is Mariana Meireles and I’m a software developer working for QuantStack. I care deeply about the impacts that technology has in the world and try my best to be the change I want to see by contributing to open source projects that stand upon libre and diverse standards.
Prior to QuantStack I worked as a developer on the PySide team at the Qt Company and as a web performance developer at Mozilla.