djhbs / imageclipr

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imageclipr

CRAN version

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

Usage of imageclipr

Installation

devtools::install_github('Timag/imageclipr')

Installation of the custom

devtools::install_github('djhbs/imageclipr@custom')

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

  • 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

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

About

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

License:Other


Languages

Language:HTML 99.0%Language:R 1.0%