Metaflow is available as an R package for MacOS and Linux. You can get it from our GitHub repository (or very soon from CRAN):
You can finish the installation by running
Behind the scenes, Metaflow relies on the Python Metaflow package, which gets installed in a dedicated conda environment when you execute
install_metaflow(). You can instead use a Python virtualenv as well:
Metaflow requires Python 3 since Python 3 has fewer bugs and is better supported than the deprecated Python 2.7.
You can test your installation by running:
Metaflow currently doesn't offer native support for Windows. However, if you are using Windows 10, then you can use WSL (Windows Subsystem for Linux) to install Metaflow. WSL lets you run a Linux environment inside Windows 10.
Follow these instructions to get set up with WSL 2 -
- Update your Windows 10 distribution to version 2004 or higher.
- Follow these steps to install WSL 2. When prompted, choose Ubuntu 18.04 as the Linux distribution.
- Open Ubuntu 18.04 on your workstation, and run the following commands in the terminal to install R and Python -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo echo "deb http://cran.wustl.edu/bin/linux/ubuntu bionic-cran35/" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt install r-base r-base-dev
sudo apt install libcurl4-openssl-dev libxml2-dev libssl-dev
sudo apt-get install python3 python3-pip
echo "alias python=python3; alias pip=pip3" > ~/.bash_aliases
[Optional] Set up RStudio IDE. Inside Ubuntu 18.04 on Windows, run the following commands -
sudo apt install -y r-base r-base-core r-recommended r-base-dev gdebi-core build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
sudo gdebi rstudio-server-latest-amd64.deb
sudo rstudio-server start
You can access RStudio at http://localhost:8787 in your browser in Windows.
To install Metaflow - Inside Ubuntu 18.04 on Windows, open the R console (or your RStudio IDE installed in the previous step) and run the following commands -
install.packages('devtools', INSTALL_opts = c('--no-lock'))
devtools::install_github("netflix/metaflow", subdir = "R")