Home

Awesome

imageclipr

CRAN version

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

Usage of imageclipr

Installation

devtools::install_github('Timag/imageclipr')

Dependencies

R packages library(rstudioapi), (library(rmarkdown) for markdown files)

For linux xclip is required. For debian, ubuntu,... install it with:

sudo apt-get install xclip 

Open issues

-- 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

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

Modify Shortcuts

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