Setting up R integration

Due to the large number of additional system dependencies, DSS R integration is not installed by default.

You can install R integration at any time.

Prerequisites (Mac OS X only)

On Mac OS X, you must first install R from Note that you might need to also install XQuartz

Case 1: Automatic installation, if your DSS server has Internet access

This procedure installs the required R packages and configures R integration for DSS. It prompts you to install any missing dependency as root if needed. Internet access (direct or through a proxy) may be needed to download missing packages.

  • Go to the DSS data dir

    cd DATADIR
  • Stop DSS

    ./bin/dss stop
  • Run the installation script

    ./bin/dssadmin install-R-integration


The install-R-integration script automatically checks for any missing system dependencies. If any is missing, it will give you the command to run to install them with superuser privileges. After the installation of dependencies is complete, you can retry the install-R-integration script

  • Start DSS

    ./bin/dss start


The above procedure downloads missing R packages from a default Internet-based repository using the HTTPS protocol. If required, you can switch to another repository (CRAN mirror) by specifying option -repo REPO_URL, as in:

./bin/dssadmin install-R-integration -repo


If the DSS server has Internet access only through a web proxy, you can configure it using the standard http_proxy and/or https_proxy environment variables, as follows:

export http_proxy=http://PROXY_HOST:PROXY_PORT
export https_proxy=http://PROXY_HOST:PROXY_PORT
./bin/dssadmin install-R-integration

Case 2: If your DSS server does not have Internet access

To help with R package installation when the DSS server does not have Internet access (directly nor through a proxy), the DSS installation kit includes a standalone script which may be used to download the required set of R package sources on a third-party Internet-connected system, and store them to a directory suitable for offline installation on the DSS server.

  • Check for missing system dependencies on the DSS server, including the base R system, the development tools, and libraries required by the mandatory R packages. If any dependency is missing, you will need to install it from a local package repository for your OS distribution.

    dataiku-dss-VERSION/scripts/install/ -check -without-java -without-python -with-r
  • Retrieve the standalone download script dataiku-dss-VERSION/scripts/install/ and transport it to the system which you will use for download. This system should run Linux or Mac OS X, and should have Internet connection, directly or through a proxy.

  • On this download system, run the download script as follows:

    ./ -dir DIR

    where DIR is a temporary directory which will hold the downloaded packages.

  • Transport the resulting directory DIR to the DSS server.

  • On the DSS server, install any missing R packages from this download directory, and finish configuring DSS R integration:

    DATADIR/bin/dssadmin install-R-integration -pkgDir DIR
  • Restart DSS

    DATADIR/bin/dss restart

Case 3: Custom installation

Installing DSS R integration consists in the following steps, which you can perform in any way suitable to your environment:

  • Install R on the DSS server (minimum version 3.2)

    Data Science Studio references it by looking up “R” in the PATH. If needed, you can override this by defining environment variable DKURBIN in the local customization file DATADIR/bin/

  • Install the following R packages, either in the global R library, or in the user library of the DSS user account:

    Packages Repository
    pkg httr RJSONIO dplyr sparklyr ggplot2 tidyr repr evaluate IRdisplay pbdZMQ crayon jsonlite uuid digest CRAN (
  • Configure DSS R integration, with the option which omits the default dependency check, and restart DSS

    cd DATADIR
    ./bin/dssadmin install-R-integration -noDeps
    ./bin/dss restart


Mac OS X

Some R versions (notably the one coming through Homebrew) are configured to use source packages by default rather than binary packages. If you leave this option, automatic installation may fail as you need the development tools installed, and quite a number of additional libraries.

If you get a compilation error when installing one of the missing packages while running install-R-integration, you may try to manually install the binary version of this package instead. At the R prompt:

install.packages("PACKAGE_NAME", repos = "")

Then run the install-R-integration command again.

Anaconda R

An alternative to the above is to use the Anaconda R distribution, and install the required R packages using conda install. You will need to set the DKURBIN environment variable to the fully-qualified path to the R entry point of the corresponding conda environment so that DSS uses it instead of the default R command.