1.2.3 Oracle Machine Learning for R Installation Steps

These steps and this roadmap illustrate a typical Oracle Machine Learning for R installation.

Note:

If you intend to use both client and server components of Oracle Machine Learning for R on the computer that is hosting Oracle AI Database, then you do not need to perform a separate client installation. A local installation of Oracle Database Client is automatically included in the installation of Oracle AI Database.

Illustration of the Installation Steps

Figure 1-2 Oracle Machine Learning for R Client and Server Installation Steps

This figure illustrates the Oracle Machine Learning for R client and server installation steps.

Description of Figure 1-2 follows
Description of "Figure 1-2 Oracle Machine Learning for R Client and Server Installation Steps"

Oracle Machine Learning for R Installation Roadmap

This roadmap provides the steps required to install and configure a typical Oracle Machine Learning for R environment. To install Oracle Machine Learning for R, do the following:

  1. Verify that your system meets the basic requirements

  2. Obtain the correct installation software

  3. Perform and validate the installations

Table 1-1 Tasks for Installing Oracle Machine Learning for R

Task Description Documentation

1. Review the Oracle Machine Learning for R sample installation.

Review the steps for a typical installation of Oracle Machine Learning for R on a Linux server and a Windows client.

Note: All the supported configurations are listed in Oracle Machine Learning for R System Requirements for On-Premises Database.

A Sample Installation of Oracle Machine Learning for R

2. Verify supported platforms and system requirements.

Use the Platform Requirements table and Server Support Matrix to verify your environment meets the requirements for installation.

Oracle Machine Learning for R System Requirements for On-Premises Database

3. Identify installation users for Oracle R Distribution and Oracle Machine Learning for R.

The user executing the installation and configuration on your system requires sufficient permissions and privileges.

For Oracle R Distribution, the installation user is root (Unix/Linux) or Administrator (Windows).

User Requirements for Oracle Machine Learning for R Server

4. Download the product installers.

Oracle R Distribution is available from Oracle’s public yum or the Oracle download site. Oracle AI Database and Oracle Machine Learning for R are available on the Oracle download site.

For Oracle Database 18c and later, the Oracle Machine Learning for R installers are shipped with Oracle Database.

Oracle Database Software Downloads

Oracle R Distribution Downloads

Oracle Machine Learning for R Downloads

5. Install and configure Oracle AI Database.

Oracle Machine Learning for R requires the 64-bit version of Oracle AI Database Enterprise Edition.

Install and Configure the Database for Oracle Machine Learning for R

6. Install and configure R.

Oracle Machine Learning for R requires an installation of R on each node of the server and on each client computer that interacts with the server. Oracle R Distribution is recommended.

The Oracle Machine Learning for R Server components must be installed on the database server.

Install R for Oracle Machine Learning for R on On-Premises Oracle AI Database

7. Install and configure Oracle Machine Learning for R Server.

Oracle Machine Learning for R includes several components on the server. Together these components enable an Oracle Machine Learning for R client to interact with an Oracle Machine Learning for R server.

Install Oracle Machine Learning for R Server

Install Oracle Machine Learning for R on Exadata

8. Install Open Source R packages on the Oracle Machine Learning for R server.

Embedded R execution with Oracle Machine Learning for R allows the use of CRAN or other third-party R packages in user-defined R functions executed on the Oracle AI Database server.

About R Package Installation for Oracle Machine Learning for R

9. Install and configure the Oracle Machine Learning for R client.

If a physical client is configured, then you must install the following Oracle Machine Learning for R components separately on each client computer:

  • R

  • Oracle Instant Client

  • Oracle Machine Learning for R Client packages

  • Oracle Machine Learning for R Client Supporting packages

If you wish to run the Oracle Machine Learning for R client through a web browser, then install RStudio Server on the database server (Linux only).

Install Oracle Machine Learning for R Client

Installing RStudio

10. Install Open Source R packages on the Oracle Machine Learning for R client.

R packages installed on the Oracle Machine Learning for R server must also be installed on the Oracle Machine Learning for R client.

R Package Installation Basics

11. Verify the Oracle Machine Learning for R Installation.

Test the Oracle Machine Learning for R installation by connecting to the Oracle Machine Learning for R client to the server and executing some Oracle Machine Learning for R functions.

Verify the Oracle Machine Learning for R Server Installation