Run R code in ZED
Tested using Zed 0.144.4 on Ubuntu 22.04.4 LTS.
- Download the Ark R kernel 0.1.117
- Run the binary:
ark --install
- Run
jupyter-kernelspec list
and find the path to ARK kernel - Open ZED and install R Extension
- Open ZED and edit settings and insert the following code (update the exact path to Ark)
"jupyter": {
"enabled": true,
"kernels": {
"python": "/home/USER/.local/share/jupyter/kernels/python3",
"R": "home/USER/.local/share/jupyter/kernels/ark"
}
}
- Open ZED keymap and map "Ctrl+Enter" (or preferred combination) to run code in REPL
[
{
"context": "Editor",
"bindings": {
"ctrl-enter": "repl::Run"
}
}
]
- Open .R file, select line(s) you wanna execute and hit "Ctrl+Enter"