I am using RTF package, and have a JPEG file that I would like to add to the RTF document that I'm creating. While, I know that I can use "addPlot()" function of RTF package, but I can't seem to make it work. Perhaps, I need to convert the JPEG into a "Plot?". If so, I'm not sure how.
Thank you for your help in advance!
Below is my code and the error message:
output <- "DownloadImage_proof_of_concept.doc"
rtf <- RTF(output,width=8.5,height=11,font.size=10,omi=c(1,1,1,1))
addPlot(rtf, plot.fun="y.jpg", width = 4, height = 5, res=300)
Error in .rtf.plot(plot.fun = plot.fun, tmp.file = tmp.file, width = width, : could not find function "plot.fun" done(rtf)