rfortherestofus / marketing

MIT License
0 stars 0 forks source link

RMarkdown post knitting tidy up #41

Open dgkeyes opened 2 years ago

dgkeyes commented 2 years ago

Thanks to Garrick we have onKnitCompleted to delete ggsave() output and other things Garrick Aden-Buie on Twitter

setHook(
  "rmarkdown.onKnitCompleted",
  function(input_file) unlink("plot.png")
)