Skip to content

RStudio Addin: Copy Image from Clipboard into R Markdown/Quarto file

License

Notifications You must be signed in to change notification settings

mokymai/paste.image

 
 

Repository files navigation

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

  • 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 R Markdown/Quarto file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.1%
  • R 0.9%