title: Copy and paste an image from clipboard to Rmarkdown / .rmd code
body: <p>How can I copy an image to the clipboard and then directly insert/paste it in an .Rmd file?</p>
  
  <p>See also here: <a href="https://github.com/rstudio/rstudio/issues/4038" rel="noreferrer">https://github.com/rstudio/rstudio/issues/4038</a></p>
  
  <p><a href="https://i.stack.imgur.com/Te136.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Te136.png" alt="enter image description here"></a></p>
  
  <p><strong>Spoiler:</strong> I wanted to post this question and then decided to give it a shot myself.
  (It is a bit weird asking a question and answering it yourself, but when i read this i felt motivated enough :) <a href="https://stackoverflow.com/help/self-answer">https://stackoverflow.com/help/self-answer</a>)</p>
  
  <p>So far i got a workaround via python (see answer below), but it works and saved me quite some silly work. So i decided i might not be the only one googling that question and share my result.</p>