在使用office R添加图像时组合paste0和src

在使用office R添加图像时组合paste0和src,r,ggplot2,paste,officer,R,Ggplot2,Paste,Officer,我正在尝试将一系列图像(png)传递到用OfficeR制作的word文档中 这是我在这里发现的另一个问题的后续问题 我已经设法回答了大部分问题,除了下面这一行 Appendix <- body_add_img(Appendix,src = paste0(mycompound,"_box.png", width = width, height = height)) 附录在谈到

我正在尝试将一系列图像(png)传递到用OfficeR制作的word文档中

这是我在这里发现的另一个问题的后续问题

我已经设法回答了大部分问题,除了下面这一行

Appendix <- body_add_img(Appendix,src = paste0(mycompound,"_box.png",
                                               width = width, height = height))

附录在谈到宽度和高度之前,您可能希望关闭paste0的括号。