Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Installation: macOS

Matthew Berryman edited this pageMar 26, 2025 ·12 revisions

vscode-R

Installvscode-R in VSCode by searchingreditorsupport.r in extension marketplace.

If your R installation is fromCRAN,then the default settings should work out of the box. Otherwise, you may have tochanger.rterm.mac to the path to your R executable, which will be executed oncommandCreate R Terminal.

languageserver

languageserver is animplementation of theLanguage Server Protocolfor 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 the newest features:

remotes::install_github("REditorSupport/languageserver")

You can also install thermarkdown package and Pandoc rendering library to seeformatted R help pages uponhover. Previews of function documentationwithout these dependencies will show a plain page.

rmarkdown can be installed with:

install.packages("rmarkdown")

Pandoc isautomatically installedif you have RStudio on your machine. See the official installation guidehere if you do not have RStudio.

radian

radian is highly recommended as the Rterminal for interactive use. It requires Python which should be available onmacOS out of the box.

pip install -U radian

You may runwhich radian to see where yourradian executable is located(typically,/usr/local/bin/radian).You will need to also set upR_HOME to the value reported by runningR RHOME andR_BIN to the location reported by runningwhich R.

Then the following VS Code settings should be updated to properly use radian asthe default terminal.

{"terminal.integrated.env.osx": {"R_HOME":"/Library/Frameworks/R.framework/Resources","R_BIN":"/usr/local/bin/R"    },"r.bracketedPaste":true,"r.rterm.mac":"/usr/local/bin/radian"}

VSCode-R-Debugger

VSCode-R-Debuggeris a VS Code extension that implements R debugging capabilities. It depends onvscDebugger.

  1. Install VSCode-R-Debugger extension in VS Code.
  2. Install vscDebugger package via
remotes::install_github("ManuelHentschel/vscDebugger")

httpgd

httpgd is an R package to provide a graphicsdevice that asynchronously serves SVG graphics via HTTP and WebSockets. Itenables the plot viewer based on httpgd in VS Code.

  1. Installhttpgd from CRAN

    install.packages("httpgd",repos= c("https://nx10.r-universe.dev","https://cran.r-project.org"))
  2. Enabler.plot.useHttpgd in VS Code settings.

AI services

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp