noamross / redoc

[NOTE: Project in suspended animation for now] Reversible Reproducible Documents
https://noamross.github.io/redoc
Other
514 stars 44 forks source link

BUG FIX: redoc:::assert_redoc() did not produce the expected error msg #48

Closed HenrikBengtsson closed 5 years ago

HenrikBengtsson commented 5 years ago

Before:

> redoc:::assert_redoc("test.docx")
Error in redoc:::assert_redoc("test.docx") : "test.docx"
In addition: Warning messages:
1: In deparse(substitute(docx), " is not a reversible document") :
  NAs introduced by coercion
2: In deparse(substitute(docx), " is not a reversible document") :
  invalid 'cutoff' value for 'deparse', using default

After:

> redoc:::assert_redoc("test.docx")
Error in redoc:::assert_redoc("test.docx") : 
  "test.docx" is not a reversible document
noamross commented 5 years ago

Thank you!