Skip to content

renkun-ken/vscode-R

 
 

Repository files navigation

R support for Visual Studio Code

Requires R.

Usage

  • For Windows, set config r.rterm.windows to your R.exe Path like "C:\\Program Files\\R\\R-3.3.4\\bin\\x64\\R.exe";
  • Open your folder that has R source file (Can't work if you open only file)
  • Use F1 key and R: command or ⌘+Enter(windows: ctrl+enter)

Features

  • Run Source(⌘+Shift+S or Push iconicon) and Run Selected((⌘+Enter))
    • If you use Windows or linux to Ctrl

use Run .R

  • R Integrated Terminal

Create R terminal

  • Extended Syntax(R, R Markdown, R Documentation)

Syntax

  • Create .gitignore based R.gitignore

  • Data frame viewer and Environment viewer(Preview Data frame or Preview Environment)

Image

  • Snippets

  • Package development short cut (Load All, Test Package, Install Package, Build Package and Document)

Requirements

Extension Settings

This extension contributes the following settings:

  • r.rterm.windows: set to R.exe path for Windows

  • r.rterm.mac: set to R term's path for Mac OS X

  • r.rterm.linux: set to R term's path for Linux

  • r.rpath.lsp: set to R.exe path for Language Server Protocol

  • r.rterm.option: R command line options (i.e: --vanilla)

  • r.source.encoding: An optional encoding to pass to R when executing the file

  • r.source.focus : Keeping focus when running(editor or terminal)

  • Language server(developing here)

TODO

  • Output Plot
  • Debug

CONTRIBUTING

This extension based on

FAQ

  • Q: I can't use command and message is xxx no command found.
  • A: Please open your folder that has R source file

The R logo is © 2016 The R Foundation

Packages

No packages published

Languages

  • TypeScript 96.6%
  • R 3.4%