-
Notifications
You must be signed in to change notification settings - Fork 129
Installation: macOS
Install vscode-R in VSCode by searching ikuyadeu.r
in extension market place.
If the R installation is from CRAN, then the default settings should work out of the box. Otherwise, you may have to change r.rterm.mac
to the path to your R executable, which will be executed on command Create R Terminal
.
If you are interested in the experimental features provided by R session watcher, you may enable it in the VSCode settings:
{
"r.sessionWatcher": true
}
languageserver is an implementation of the Language Server Protocol for R.
Run the following commands in R.
You may install the latest stable release from CRAN:
install.packages("languageserver")
or install the development version with newest features:
remotes::install_github("REditorSupport/languageserver")
Install vscode-r-lsp in VSCode by searching reditorsupport.r-lsp
in extension market place.
If the R installation is from CRAN, then the default settings should work out of the box. Otherwise, you may have to change r.lsp.path
to the path to your R executable, which will be executed to start the R Language Server as a background process.
radian is highly recommended as the R terminal for interactive use. It requires python which should be available on macOS out of the box.
pip install -U radian
You may run which radian
to see where your radian
executable is located (typically, /usr/local/bin/radian
).
Then the following VSCode settings should be updated to properly use radian as the default terminal.
{
"r.bracketedPaste": true,
"r.rterm.mac": "/usr/local/bin/radian"
}
- Getting Started
- Installation
- Configuration
- Features
- Package development
- R Markdown
- Contributing
- FAQ