An open API service indexing awesome lists of open source software.

https://github.com/Toniiiio/imageclipr

RStudio Addin: Copy Image from Clipboard into RMarkdown .Rmd file
https://github.com/Toniiiio/imageclipr

clipboard image markdown rmarkdown rstudio rstudio-addin

Last synced: about 2 months ago
JSON representation

RStudio Addin: Copy Image from Clipboard into RMarkdown .Rmd file

Awesome Lists containing this project

README

        

## imageclipr
[![CRAN version](http://www.r-pkg.org/badges/version/imageclipr)](https://cran.r-project.org/package=imageclipr)

RStudio Addin: Copy images from clipboard into RMarkdown .Rmd files.

![Usage of imageclipr](usage.gif)

## Installation
`devtools::install_github('Timag/imageclipr')`

## Dependencies
R packages `library(rstudioapi)`, (`library(rmarkdown)` for markdown files)

For linux [xclip](https://github.com/astrand/xclip) is required.
For debian, ubuntu,... install it with:
```
sudo apt-get install xclip
```

## Open issues
- can not:

-- copy and paste image and text together

-- copy and paste an image by copying the file in the explorer

## Technical walkthrough
(highlevel): https://stackoverflow.com/questions/55541345/copy-and-paste-an-image-from-clipboard-to-rmarkdown-rmd-code

## Usage

### Select the addin

Note: You will see "Paste Img to Rmd file" instead of "Insert Image".

![Addin selection](clipboardImage_5.png)

### Adding a keyboard shortcut (Recommended)
In RStudio go to Tools - Modify Keyboard Shortcuts...

Note: You will see "Paste Img to Rmd file" instead of "Insert Image".

![Find Shortcuts](clipboardImage_1.png)

![Modify Shortcuts](clipboardImage_2.png)

(This project is part of my life long application to RStudio :))