0
docx<- read_docx()
officer::body_add_img(docx,src = Screenshot(2).png,
                              height = 4,
                              width = 6.25)
print(docx,target="testing1.docx)

src parameter reads in the image from the server. The issue is that the resulting doc file is not displaying the images.

What could be the issue here? Is the path the the image on server not correct? Does the path to image on the server needs to be in a specific format?

Any help will be appreciated. Thanks!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • I suspect it should be `"Screenshot(2).png"` not `Screenshot(2).png`. And it *definitely should be `"testing1.docx"` rather than `"testing1.docx`. The brackets in the image file name may also be an issue. What working directory does `officer` use? Is the PNG file in that directory? – Limey Oct 27 '22 at 06:52

0 Answers0