Oracle R Distribution version 3.4.4 is now released on Oracle Linux 6 and Linux 7 yum channels.
This update, code named "Someone to Lean On", is a maintenance release for the R-3.4.x series, but a major update to the R Language engine since the release of Oracle R Distribution 3.3.0.
The R-3.4.x series brings several major changes aimed at improving the performance of R programs.
The Just-In-Time (JIT) byte-code compiler is now enabled by default. R will automatically byte code compile any code that is executed without explicitly calling any compile functions. This can result in significantly higher execution speeds as functions will be compiled prior to execution on the first or second invocation. The impact is larger on code that uses looping-type functionality.
The JIT byte compiler has been available in R for some time, but it was not enabled by default. To activate JIT compilation previously, users would be required to invoke the enableJIT() function from the built-in compiler package. The "level" argument tells R how much code to compile before execution. Arguments 1, 2, or 3 implement different levels of optimization; 0 disables JIT, 1 compiles functions before their first use, 2 also compiles functions before they are duplicated, and 3 also compiles loops before they are executed:
The JIT byte compiler can also be enabled by setting the environment variable R_ENABLE_JIT to one of these values.
R-3.4.4 (or 3.4.x series) introduces a variety of additional performance improvements:
This is just a highlight of the changes since R-3.3.0 was released. Refer to the R NEWS file for
the detailed list of bug fixes and enhancements.
Oracle R Distribution 3.4.4 works with Oracle R Enterprise 1.5.1 after applying several workarounds:
1. Out of the box, ORE Embedded R Execution under R-3.4.4 will give the error:
Error in .oci.GetQuery(conn, statement, data = data, prefetch = prefetch,
ORA-06520: PL/SQL: Error loading external library
ORA-06522: libpcre.so.1: cannot open shared object file: No such file or directory
Beginning with R-3.3.0, ORD on Linux 6 is built against libraries provided in the R-core-extra library, which installs to $R_HOME/port/Linux-X64/lib by default.
The Oracle DB process cannot find libpcre because it's not in LD_LIBRARY_PATH for the Oracle process. Adding the following to $ORACLE_HOME/hs/admin/extproc.ora resolves the problem:
A database reboot is required for the change to take effect. With this update, the Oracle
process will find libpcre.so.1:
Note that this issue is only present for Linux 6 systems. The Linux 7 native libpcre library is used to build R and the path to libpcre is in the Oracle process LD_LIBRARY_PATH by default.
2. The ORE 1.5.1 supporting package Cairo must be rebuilt for compatibility with R-3.4.4:
This applies to ORD 3.4.4 on Linux 6 and 7 systems. If the Cairo package is not rebuilt, embedded R functionality will give the error:
ORA-28578: protocol error during callback from an external procedure
With these changes, Oracle R Distribution 3.4.4 is compatible with Oracle R Enterprise 1.5.1.
The releases for Oracle R Distribution 3.4.4 on Windows, Solaris x86_64, Solaris SPARC and AIX will follow. Check the Oracle R Distribution download site from Oracle's Open Source Software portal for updates.