https://github.com/jupyter-xeus/xeus-r
Jupyter kernel for the R programming language
https://github.com/jupyter-xeus/xeus-r
Last synced: 3 months ago
JSON representation
Jupyter kernel for the R programming language
- Host: GitHub
- URL: https://github.com/jupyter-xeus/xeus-r
- Owner: jupyter-xeus
- License: other
- Created: 2023-10-02T08:05:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-10T11:33:03.000Z (3 months ago)
- Last Synced: 2025-04-10T12:53:11.932Z (3 months ago)
- Language: C++
- Homepage: https://jupyter-xeus.github.io/xeus-r/lab/index.html
- Size: 329 KB
- Stars: 46
- Watchers: 7
- Forks: 12
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 
[](https://github.com/jupyter-xeus/xeus-r/actions/workflows/main.yml)
[](https://xeus-r.readthedocs.io/en/latest/?badge=latest)
[](https://mybinder.org/v2/gh/jupyter-xeus/xeus-r/main?urlpath=/lab/tree/notebooks/xeus-r.ipynb)
[](https://jupyter-xeus.github.io/xeus-r/)
[](https://github.com/jupyter-xeus/xeus-r/actions/workflows/R-CMD-check.yaml)`xeus-r` is a Jupyter kernel for the R programming language.
## Installation
xeus-r has been packaged for the mamba package manager on the Linux, Windows, and OS X platforms.
### Installation with mamba or conda
The safest usage is to create an environment named `xeus-r`
```bash
mamba create -n xeus-r
mamba activate xeus-r
```Then you can install in this environment `xeus-r` and its dependencies
```
mamba install xeus-r -c conda-forge
```### Installing from source
Xeus-r can be built from sources. We recommend installing the dependencies with mamba.
```bash
mamba install cmake cxx-compiler xeus-zmq nlohmann_json jupyterlab r-base r-evaluate r-rlang r-jsonlite r-glue r-cli r-repr r-irdisplay -c conda-forge
```Then you can compile the sources (replace `$CONDA_PREFIX` with a custom installation
prefix if need be)```bash
mkdir build && cd build && mkdir temp_r_lib
cmake .. -D CMAKE_PREFIX_PATH=$CONDA_PREFIX -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX -D CMAKE_INSTALL_LIBDIR=lib
make && make install
```## Trying it online
To try out xeus-r interactively in your web browser, just click on the Binder link.
[](https://mybinder.org/v2/gh/jupyter-xeus/xeus-r/main?urlpath=/lab/tree/notebooks/xeus-r.ipynb)
To use a WebAssembly build of xeus-r in JupyterLite, follow the link.
[](https://jupyter-xeus.github.io/xeus-r/)
## Documentation
To get started with using `xeus-r`, check out the full documentation
http://xeus-r.readthedocs.io
## Dependencies
`xeus-r` depends on
- [xeus-zmq](https://github.com/jupyter-xeus/xeus-zmq)
- [nlohmann_json](https://github.com/nlohmann/json)| `xeus-r`| `xeus-zmq` |`nlohmann_json` |
|---------|------------------|----------------|
| main | >=3.0,<4.0 | >=3.11.3 |
| 0.2.x | >=3.0,<4.0 | >=3.11.3 |## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) to know how to contribute and set up a
development environment.## License
This software is licensed under the `GNU General Public License v3`.
See the [LICENSE](LICENSE) file for details.