r - How do I add an existing image when using pander's live report generation? -


i sadly using windows 7, problem...

i want add existing image file pander report, using live report generation on windows platform, outputting docx:

library(pander) setwd("t:/r/temp") #this contains subfolder & file /plots/temp.png myreport = pandoc$new(author="jerubaal",title="where's picture?", format="docx") myreport$add.paragraph("there should picture after this.") myreport$add(pandoc.image("/plots/temp.png")) myreport$add.paragraph("there should picture before this.") myreport$export() 

alas, there no image included when running in windows (not in md file).

it doesn't work if try putting code straight in:

myreport$add("![](/plots/temp.png)") 

if try this:

myreport$add("![/plots/temp.png](/plots/temp.png)") 

i text path: /plots/temp.png

any suggestions?

fyi: time ago, trying out ggplot, got work in ubuntu: earlier question

this report generated r (3.0.3) , pander (0.3.9) in 0.02 sec on x86_64-w64-mingw32 platform.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -