richfitz / remake

Make-like declarative workflows in R
Other
340 stars 32 forks source link

Better error messages #66

Open richfitz opened 9 years ago

richfitz commented 9 years ago

With this set up:

packages: rmarkdown
targets:
  manuscript.docx:
    command: render("manuscript.Rmd", "word_document", "manuscript.docx")
    depends: figures

The error message generated is:

Error in .remake_add_targets_implied(obj) : 
  Implicitly created targets must all be files:
 - word_document: (in manuscript.docx)

because word_document should be in I(). Perhaps link message to a helpfile that describes I and implicit targets. Perhaps suggest I if no extension is present on the name.

richfitz commented 9 years ago

cc: @dfalster, @RemkoDuursma