ycphs / openxlsx

openxlsx - a fast way to read and write complex xslx files
https://ycphs.github.io/openxlsx/
Other
226 stars 75 forks source link

Inserting hyperlinked image #499

Closed jistria closed 2 months ago

jistria commented 2 months ago

I would like to be able to insert an image that opens a website in my browser when clicked.

This PR adds a new parameter to insertImage() that takes a URL, file path, or mailto string and uses it to add a drawing relationship, turning the image into a hyperlink. Tests are included.

I've also updated the DESCRIPTION and NEWS file with what I understood to be correct for the development version. Let me know if this was incorrect.

Thanks in advance for your time.

JanMarvin commented 2 months ago

Thanks!