<div class="section-label"><span class="num">03</span> R</div> <div class="section-title">R package + Prediction Engine <em>runtime</em>.</div> In R you install two things: the **rbpengine** package, and the Prediction Engine runtime from Cambridge Sports Analytics. The package alone is not enough to run predictions — the runtime and a [[License Key|license key]] are required. <p>&nbsp;</p> ## What you need - R 4.1 or newer - The **rbpengine** package (from CSA or the channel they specify) - The Prediction Engine runtime installer for your Mac, Linux, or Windows machine - A license from CSA ## 1. Install the R package Follow the install instructions CSA gives you for **rbpengine** (for example an install file or package repository link). Then in R: ```r library(rbpengine) engine_available() ``` If the runtime is not installed yet, <span class="mono">engine_available()</span> returns <span class="mono">FALSE</span>. That is expected until step 2 is done. ## 2. Install the Prediction Engine runtime Use the installer or package CSA sent for your platform. Details: [[Install/Native Runtime|Desktop or server installer]]. After install, the engine is usually found automatically. If R still cannot see it, CSA’s installer notes explain how to point your session at the install location. ## 3. Activate your license With the runtime installed, continue to [[License Key]]. ```bash rbp-license-info rbp-license-info --setlicense RBP-LIC-1:… ``` ## Check that you are ready ```r library(rbpengine) engine_available() # should be TRUE after the runtime is installed ``` <div class="btn-row center"> <a class="btn-primary" href="/Install/Native%20Runtime">Installer / runtime</a> <a class="btn-ghost" href="/Install/License%20Key">License Key</a> </div>