GithubHelp home page GithubHelp logo

rkernel's Introduction

Rkernel

official JetBrains project

Rkernel is a program responsible for handling various types of requests: code execution, code completions, debugging, and so on. Is also provides a response from the R interpreter.

The idea of Rkernel is pretty similar to gdb or Jupyter kernel but it aimed for R.

Building

1 Build gRPC

  • On Windows: build_grpc.bat
  • On GNU/Linux or MacOS: build_grpc.sh

2 Use cmake with your toolchain to build the project

Ensure that the cmake R_HOME variable is defined or suitable R version is present in the PATH variable. Use the following toolchains:

  • On Windows: MSVS 2017 and ninja (you probably have to use dll2lib.R for generating lib files and apply patches from Rcpp-patches)
  • On MacOS: clang 8+ and make
  • On GNU/Linux: gcc 7.0+ and make

To use other configurations, you may need to edit the CMakeLists.txt file.

Running

Rkernel consists of:

  • Rwrapper: responsible for running gRPC server and handling interaction with R interpreter.
  • R files: files that are located in the R directory of the project root.

For interacting with Rwrapper you should implement a gRPC client for the protocol defined in Rkernel-proto

To start interacting with Rwrapper:

  1. Run the Rwrapper
  2. Connect using gRPC protocol
  3. Send the init message. The init messages contains your project directory and the location of R files.
  4. Once the Rwrapper receives the init message, it will source the R files.
  5. Use the message from the protocol for communication. For more details about the protocol, see the Rkernel-proto project. You could find an example of the client implementation here.

Licensing

  • Rkernel-proto is covered by Apache License 2.0
  • R/RSession is covered by AGPL-3.0
  • the rest of the project is covered by GPL-3.0

rkernel's People

Contributors

alexanderlobov avatar avokin avatar deaglegross avatar dmpanov avatar intellij-monorepo-bot avatar mervap avatar steelart avatar trespasserw avatar vladimir-koshelev avatar vladimirlagunov avatar vladrassokhin avatar zeburek 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.