2.5 R with JupyterLab

JupyterLab is a usefull client for analysing data and carrying out statistical analysis. However, it is not limited to Python. In this section we will show hot to set up JupyterLab to work with R and C++.

2.5.1 Git Setup

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Sometimes installing newer packages on an older version of R may result in recompilation of some parts of your R installation, or other packages. this may break any linkage between R and Python as well as sometimes removethe ability to install packages from Github. To avoid this - install Git along with R and Python.

Go to Git download page and download the appropriate version

Durint the installation always click Next untill you can complete the installation. Only change the default settings if you are an existing user of Git and you need a different configuration than the default.

2.5.2 Setting up R with JupyterLab

Following the GitHub link we can launch RStudio and type:

Note that any R packages should be installed on this version of R. If later on you want to register a different version of R, you should take note that, just like with regular R, you will need to download any packages for the newer version, if you haven’t one so already.

After doing this, R will appear as a notebook or console option in JupyterLab.

2.5.3 Setting up C++ with JupyterLab

Following the GitHub link, here or here, one can setup C++ to work with JupyterLab.

Unfortunately, the implementation is not yet fully supported on windows. Once compatibility is improved, this section will be updated in the future.