Rapporter/rapport

Plot files not regenerated after user deletion

danreb25 opened this issue · 2 comments

Hi is this a normal behavior?

  1. I open a R session
  2. When running a report template (custom template) with plot, the required plot image files are generated. (e.g. plot1.jpg, plot2.jpg, plot3.jpg)
  3. I delete plot2.jpg (e.g. because I just modified the plot generation script, and want it to be generated again taking into account the modifications).
  4. I rerun the report template

Pandoc error file not found exception on the image file I just deleted.

In fact, I was expecting the plot2.jpg file been generated again, but it isn't ... unless I close my R session and open another again and rerun the report template.

Thanks for your comment on this one.

Cheers

Thanks for reporting this issue, it's probably related to regenerating images, I will try to reproduce the bug. Until then, please try setting pander::evalsOptions('cache', FALSE) after loading the rapport package.

Hi,
Ok it's fine with setting pander::evalsOptions('cache', FALSE)