Download the Oracle Pre-Built Database Developer VMs from OTN.
Import the extracted VM into Virtual Box and bootup the Virtual Machine. After starting the VM, the following screen is presented witin Virtual Box:

check the Linux Version of the Downloaded Virtual Machine with below command:
# uname -r
For this VM it is: 4.1.12-61.1.27.el7uek.x86_64, thus: Oracle Enterprise Linux 7.
Install R (distribution) for Oracle R Enterprise
Afterwards, switch user to root (Password is “oracle”) and navigate to the yum Repository configuration:

using the vi (i command for – – inserting- – Mode and Esc for exiting the insert Mode, save with :wq) update the following sections within the repo file:
[ol7_latest]
enabled=1
[ol7_addons]
enabled=1
[ol7_optional_latest]
enabled=1
e.g.:

Install R with the following command

this automatically downloads and performs the installation:



Installing Oracle R Enterprise Server
Add the Oracle Home Lib to the Library Path environment variable:

This can also be added to the ~/.bashrc

As next step, download the Oracle R Enterprise software from OTN.

And store to a installation directory e.g. /u01/ORE_Inst_Dir

and unzip the files:

Start the installation by running the installer:

Installing Oracle R Client
Unzip the Client zip files:

switch to root user and install all unzipped files:

Start Oracle R Client with the ORE command and load the Oracle R libaries with library(ORE). When loading the R libaries, the following error is thrown:
Loading required package: OREembed
Error in dyn.load(file, DLLpath = DLLpath, …) :
unable to load shared object ‘/u01/app/oracle/product/12.1.0.2/db_1/R/library/png/libs/png.so’:
libpng12.so.0: cannot open shared object file: No such file or directory
Error: package ‘OREembed’ could not be loaded

Since, the file libpng12.so.0 is not available it needs to be installed:


[Thanks to the following article which features the same issue]
After installing the missing file, the ORE Libaries are loaded successfully within R:

Further references:
http://rajiv-kuriakose.blogspot.de/2016/03/how-to-install-oracle-r-enterprise-on.html
Official Oracle Documentation:
https://docs.oracle.com/cd/E57012_01/doc.141/e57007/install_oreserver.htm#BGBJIIAG