Chapter 13. Playing Nice – Connecting to Other Systems

In this chapter, we will cover the following recipes to connect to other systems:

  • Using Java objects in R
  • Using JRI to call R functions from Java
  • Using Rserve to call R functions from Java
  • Executing R scripts from Java
  • Using the xlsx package to connect to Excel
  • Reading data from relational databases – MySQL
  • Reading data from NoSQL databases – MongoDB

Introduction

R is an open source product and hence its capabilities are constantly expanding. R is specifically useful for its numerous statistical packages and powerful visualization. When applications written in other environments (such as Java, C++, Python, and Excel) need to exploit R's special capabilities, we need to smoothly integrate these environments ...

Get R: Recipes for Analysis, Visualization and Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.