Rapporter/rapport

More explicit message in Pandoc.convert

Closed this issue · 0 comments

this enhancement was suggested in issue #96

in short executing export command
e.g.

rp<-rapport(file.path(MY_TEMPLATE_DIR,"t-test.tpl"), ius2008, x = "leisure", pi.value=TRUE)
f<-file.path (MY_RAPPORT_PROJECT_DIR,'demo')
tpl.export(   rp, file=f, format='pdf', logo=FALSE)  

we can get unexplicit pandoc messages like this one :

Warning message:
In Pandoc.convert(fp, format = .self$format, open = open, proc.time = as.numeric(proc.time() -  :
  Pandoc had some problems while converting to pdf: 

This error message isn't explicit!

Is there a way to print in the R console the far more explicit message that was generated when executiong the DOS cmd

pandoc demo.md -o demo.pdf 

Indeed under the Dos Cmd window, the error message was clear about the not found logo filePath!

Cheers