Coder Social home page Coder Social logo

dash's Introduction

dash

RStudio Addin to Run a Selection as a Background Job

RStudio daily release now includes a Jobs pane. See this excellent demo from @hrbrmstr for details.

RStudio Jobs

This allows one to source a script as a background job. But what about incidental code? This Addin allows one to highlight a region of code to be run as a background job.

Installation

You can install the development version of dash from GitHub or GitLab

devtools::install_github("jonocarroll/dash")
devtools::install_gitlab("jonocarroll/dash")

NOTES

  • dash hastily pre-empts any official implementation, and as such will be rendered useless once that is complete.
  • dash has been tested with RStudio 1.2.719. The API is under constant development and as such this could break at any daily release. I will try to keep up as best as I can. The internals became available as PR #2923 was merged, which means the earliest daily this should be compatible with is probably
Filename Published Commit Build ID
rstudio-1.2.712-amd64.deb 2018-06-08 20:22:28 87458be9 da7b43c700e714272546b76297fc64a8-12
  • There doesn't appear to be an exported way to STOP a job, so keep an eye on your infinite loops.
  • dash writes the selection as a temporary file and sources that, so the selected code must be valid.
  • Obviously requires a fairly recent version of RStudio.
  • install_gitlab requires the development version of r-lib/devtools.

dash's People

Contributors

jonocarroll avatar

Stargazers

Gregory Jefferis avatar Ellis Valentiner avatar Tyson Barrett avatar Colin Fay avatar Emrah Er avatar appidi abhinav reddy avatar Ben Marwick avatar Garrett Mooney avatar Sebastian Nickel avatar Roel Hogervorst avatar Michael Sumner avatar Adam H. Sparks avatar Mara Averick avatar  avatar Jianfeng avatar Shinya Uryu avatar Roberto Salas avatar John Coene avatar boB Rudis avatar Matthew Henderson avatar Patrick Schratz avatar Andrew Heiss avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

lboller jefferis

dash's Issues

runScriptJob error

Hi Jonathan,

nice idea! I tried it on RStudio Server Pro and locally.

Here's what I get:

RStudio Server Pro (1.2.713) (Debian 9)

Fehler in .Call("rs_runScriptJob", path, encoding, workingDir, importEnv,  : 
  Falsche Anzahl von Argumenten (5), erwarte 4 für 'rs_runScriptJob'

Local (1.2.679) (Arch)

Error in .rs.api.runScriptJob(path = path.expand(tf), workingDir = getwd(),  : 
  could not find function ".rs.api.runScriptJob"

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.