imageclipr icon indicating copy to clipboard operation
imageclipr copied to clipboard

Error in (function () : Please save the file before pasting an image.

Open IsmetOzzer opened this issue 1 year ago • 3 comments

Hey, I used to have no issues with imageclipr but I switched to a macbook with an m2 chip. Now when I try to paste an image, I get this error.

Any help would be appreciated since I really like using this addin!

IsmetOzzer avatar Mar 22 '23 10:03 IsmetOzzer

Hi @IsmetOzzer, could you check whether a file is produced/saved in the working directory (getwd())

Toniiiio avatar Mar 30 '23 16:03 Toniiiio

Hey, it does not save the image in the working directory

IsmetOzzer avatar Mar 31 '23 15:03 IsmetOzzer

Hi @IsmetOzzer, ok could you try to run this part manually: https://github.com/Toniiiio/imageclipr/blob/4b49aef08aa50b2a9c14eaff9298cfa10bbd6f5c/R/insertImageCode.R#L22. (after copy a picture to the clipboard)

Unfortunately i didnt write the MacOS part myself, maybe the author @xiaoa6435 could assist as well.

Toniiiio avatar Mar 31 '23 20:03 Toniiiio