This R script loads three version of the same image and uses officer functions to create a word document that has them. The pos
option after
puts one image after the other, but does so with a return after each so they appear stacked. How do I make them side-by-side?
library(officer)
doc <- read_docx()
f1 = f2 = f3 = system.file("ex/elev.tif", package="terra")
for (i in c(f1, f2, f3)) {
doc <- body_add_img(doc, src = i, width = 3, height = 3, pos = "after")
}
print(doc, target = "graphics/testLayout.docx")