Getting Started with R in JupyterLite
The process for getting started with R follows the same general workflow as Getting Started with Python, with one key difference: you'll need the xeus-r kernel and R-specific packages in your environment.
Using the Default R Environment
The steps for selecting an environment and creating a project are identical to the Python setup process:
- Select the default R environment
- Create your project
- Launch and use your notebook
Creating a Custom R Environment
To create a custom R environment, follow the same steps as for Python. The video below demonstrates:
- Adding the
xeus-rkernel (required for R execution) - Installing R packages (example:
ggplot2) - Real-time environment resolution process
Important: Remember to save your new environment after package resolution completes.
warning
When adding R packages, prefix them with r-. For example:
ggplot2becomesr-ggplot2dplyrbecomesr-dplyr