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:
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 E298A3A825C0D65DFD57CBB651716619E084DAB9sudo echo "deb http://cran.wustl.edu/bin/linux/ubuntu bionic-cran35/" | sudo tee -a /etc/apt/sources.listsudo apt updatesudo apt install r-base r-base-devsudo apt install libcurl4-openssl-dev libxml2-dev libssl-devsudo apt-get install python3 python3-pipecho "alias python=python3; alias pip=pip3" > ~/.bash_aliasessource ~/.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-devwget https://rstudio.org/download/latest/stable/server/bionic/rstudio-server-latest-amd64.debsudo gdebi rstudio-server-latest-amd64.debsudo 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")metaflow::install_metaflow()metaflow::test()