sdllc / constructr

Electron-based R Shell

Home Page:http://constructr-project.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConstructR

ConstructR logo

Electron-based R shell.

Install

To install and run without building from scratch, grab an installer for your platform from the releases page.

Build

Prerequisites

  • git https://git-scm.com

  • node (and npm) https://nodejs.org

  • R https://www.r-project.org/

    Either your distribution's R package or R built from source. If you build from source, make sure to use the configure option --enable-R-shlib to build shared libraries. On Windows, the binary install of R is fine.

    R must be visible on your PATH for the build to succeed.

  • Build tools: the commands below will build a native node add-on (controlr) and a binary R package (jsclientlib). You need standard build tools for C/C++. On Windows, the R package will be installed as a prebuilt binary, so you don't need the Rtools package.

Download, Build and Run

Note: on Windows, these instructions will work if you are using a unix-like shell (like Git bash). If you are using the Windows shell ("Command Prompt"), you have to turn around the slashes. See below.

# download
git clone https://github.com/sdllc/constructr.git

# install packages
cd constructr
npm install

# install modules and build.  
node_modules/.bin/gulp

# build and install the `jsclientlib` R library
node_modules/.bin/gulp jsclientlib

# now run
node_modules/.bin/electron app

# alternatively, run with livereload:
# node_modules/.bin/gulp watch

Windows shell version:

REM * download
git clone https://github.com/sdllc/constructr.git

REM * install packages
cd constructr
npm install

REM * install modules and build.  
node_modules\.bin\gulp

REM * build and install the `jsclientlib` R library
node_modules\.bin\gulp jsclientlib

REM * now run
node_modules\.bin\electron app

REM * alternatively, run with livereload:
REM * node_modules\.bin\gulp watch

About

Electron-based R Shell

http://constructr-project.com


Languages

Language:JavaScript 50.5%Language:HTML 31.4%Language:CSS 11.0%Language:R 7.1%