Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Installing R and R Packages on UNIX Platforms in OBIEE 12c

Question
11
Views
0
Comments
User_DQ59A
User_DQ59A Rank 1 - Community Starter

Hi All,

I followed the oracle document to install R on my linux obiee server(linux 6)

https://docs.oracle.com/middleware/12211/lcm/BIEIG/GUID-9094BFE3-0B41-40AD-83F5-23E0A2D7229F.htm#BIESG9376

7.1.2 Installing R and R Packages on UNIX Platforms

Use the procedures in this section to install R and the R packages on UNIX platforms.

See Before You Begin the Installation for general prerequisite information.

Before you perform the installation, note the following important information and required tasks:

  • Run RInstaller.sh as root or using the sudo command. See the README.txt that is included in r-installer.zip for more information.
  • Locate proxy.txt in the RInstaller folder and edit it to include the proxy server details.
  • For OLE 7, before you install the Oracle R distribution, you need to install the TexLive and TexInfo RPMs.
    • The required RPM versions are: texlive-epsf-svn21461.2.7.4-32.el7.noarch.rpm and texinfo-tex-5.1-4.el7.x86_64.rpm.
    • Download the RPMs and install them using rpm -ivh <rpm_name>.
    • You must install the RPMs in this specific order: texlive and then texinfo.

To Install R on UNIX Platforms:

Note:

You must run the RInstaller in the following operation as a Root user.

Open a command line, navigate to the installer's location, and enter the following to decompress and run the distributed R installer:

bash-4.1$ unzip r-installer.zip bash-4.1$ cd RInstaller bash-4.1$ ./RInstaller.sh Usage ./RInstaller { install | installpackages | uninstall } bash-4.1$ sudo ./RInstaller.sh install 

To Install R Packages on UNIX Platforms

For UNIX platforms, after you have installed R, then from the same command line run the following command to download and install the required R packages (forecast, mvoutlier, randomForest, RJSONIO, and matrixcalc). Running this command also installs the OBIEEAdvancedAnalytics R package. The installer uses the proxy information from proxy.txt to download the packages from CRAN.

bash-4.1$ sudo ./RInstaller.sh installpackages

Somehow i was able to install R with so many trial and errors with proxy.txt , but I am not able to install the packages .

The error what I am getting is :

Do you want to continue (y/n)y

Installing package into â/usr/lib64/R/libraryâ

(as âlibâ is unspecified)

trying URL 'http://cran.r-project.org/src/contrib/Archive/bitops/bitops_1.0-5.tar.gz'

Error in download.file(p, destfile, method, mode = "wb", ...) :

  cannot open URL 'http://cran.r-project.org/src/contrib/Archive/bitops/bitops_1.0-5.tar.gz'

In addition: Warning message:

In download.file(p, destfile, method, mode = "wb", ...) :

  unable to connect to 'cran.r-project.org' on port 80.

------

------

Error in library(RCurl) : there is no package called âRCurlâ

Calls: installpackagecustom -> library

Execution halted

################# R Dependency Package Install Incomplete: [1] "### Using proxy defined in proxy.txt ###" ####################

This is repeated for all the packages .

Has anyone faced the similar issue or any guidance is most welcomed.