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.
On Mac OS X, you must first install R from http://www.r-project.org/. Note that you might need to also install XQuartz
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
Run the installation script
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
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 http://cran.univ-paris1.fr
If the DSS server has Internet access only through a web proxy, you can configure it using the standard
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
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/install-deps.sh -check -without-java -without-python -with-r
Retrieve the standalone download script
dataiku-dss-VERSION/scripts/install/download-R-packages.shand 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:
./download-R-packages.sh -dir DIR
DIRis a temporary directory which will hold the downloaded packages.
Transport the resulting directory
DIRto 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
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
DKURBINin the local customization file
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 gtools CRAN (https://cran.r-project.org)
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
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:
options(pkgType="both") install.packages("PACKAGE_NAME", repos = "http://cloud.r-project.org/")
Then run the install-R-integration command again.
An alternative to the above is to use the Anaconda R distribution, and install the required R packages using
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.