GithubHelp home page GithubHelp logo

chunkthis's Introduction

chunkthis

The goal of chunkthis is to provide a Rstudio addin to paste a copied code wrapped with r-markdown code-chunk fence like,

```{r}
copied-code
```

Installation

You can install the development version of chunkthis from GitHub with:

# install.packages("remotes")
remotes::install_github("shafayetShafee/chunkthis")

How to use

Its very simple to use (like any other addins). First copy a code that you want to wrap with code chunk fence. Then go to Addins and click Chunk the code

chunkthis's People

Contributors

shafayetshafee avatar

Stargazers

 avatar

Watchers

 avatar

chunkthis's Issues

Error: Clipboard on X11 requires that the DISPLAY envvar be configured.

Can not use the addins from Rstudio Server (Running on Ubuntu)

Whenever clicking on chunk the code , got this error,

<simpleWarning in system2(util_test[1], util_test[-1], stdout = TRUE, stderr = TRUE): running command ''xsel' --clipboard --output 2>&1' had status 1>
Error: Clipboard on X11 requires that the DISPLAY envvar be configured.

This is can be solved with clipr::clipr_available. See here for reference,

To check whether the system has been properly configured to allow access to the clipboard, you may run clipr_available() which will either return TRUE or FALSE. This will be particularly useful for Linux-based systems, where clipr’s functionality depends on the installation of additional software

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.