4.10 Use the R Interpreter in a Notebook Paragraph
An Oracle Machine Learning notebook supports multiple languages. Each paragraph is associated with a specific interpreter. To run R functions in an Oracle Machine Learning notebook, you must first connect to the R interpreter.
In an Oracle Machine Learning UI notebook, you can add multiple paragraphs, and each paragraph can be connected to different interpreters such as R or SQL or Python. You identify which interpreter to use by specifying %
followed by the interpreter to use: sql
, script
, r
, python
, conda
, markdown
.
This example shows how to:
- Connect to the R interpreter to run R commands in a notebook.
- Verify the connection to Oracle Autonomous Database, and
- Load the ORE libraries
- About Oracle Machine Learning for R
Oracle Machine Learning for R (OML4R) is a component of the Oracle Machine Learning family of products, which integrates R with Oracle Autonomous Database.
Parent topic: OML Notebooks