Code Monkey home page Code Monkey logo

r-boxj's Introduction

R package for Sublime Text

Features:

  • Send commands to various programs.
    • Mac: R GUI, RStudio(>v0.99.769), Terminal, iTerm 2;
    • Unix: screen, tmux;
    • Windows: R GUI, RStudio, Cygwin, Cmder (see below to configure Cmder);
    • SublimeREPL
  • Autocompletions for various packages.
  • Function hints in status bar for various packages.
  • Support Roxygen, Rcpp, R Sweave and R Markdown syntaxes.
  • knitr build command for R markdown and Rnw files.
  • R-Extended syntax.

If you like it, you could send me some tips via paypal or gratipay.

Getting start

Usage

In the following, C is ctrl for Windows/Linux, cmd for Mac.

  • C + enter to send code to gui/terminal. R is the default for mac, R64 is default for windows and tmux is the default for linux. To change the default program, do C + shift + p -> R-Box: Choose Program.
  • C + \ to change working dir
  • C + b to source the current R file, or to run knitr for Rnw or R markdown files.

Settings

See Preference -> Package Settings -> R-Box

Autocompletions and status bar hints

Auto completions and status bar hints only support limited number of packages. R-Box will search for library or require statements in order to load the corresponding package support files. The support files are under the packages directory. If your favorite packages are not listed there, you can generate the corresponding files by running packages.R in the following steps.

  1. Preference: Browse Packages and create the directory /Users/R-Box/ if it doesn't exist
  2. Copy the file packages.R to R-Box
  3. Run Rscript packages.R <package name>

This will create a json file under packages directory.

FAQ

SublimeLinter settings

To enable SublimeLinter via SublimeLinter-contrib-R and lintr, please add the following in the SublimeLinter user settings file:

    "syntax_map": {
        "r extended": "r"
    }

Cmder settings

  • Go to Paste in the settings, uncheck, "Confirm keypress" and "Confirm pasting more than..."
  • Change the default paste all lines command from shift+insert to ctrl+shift+v. I actually posted an issue at Cmder about the default keybind.

License

R-Box is licensed under the MIT License. AutoHotkeyU32.exe under bin is included with its own license.

r-boxj's People

Contributors

randy3k avatar rsaporta avatar wngrtn avatar joshjfink avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.