You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For deployment purposes (e.g., Connect), it would be good to have a function like knit_fail(reason) to allow for a document-level failures. One scenario might be an .Rmd file deployed as data validation checkpoint where if a particular validation failed, knit_fail() could be invoked to cause failure at the very end. Then Connect could make use of the reason text and react accordingly (e.g., cancel deploy).
One might use stop() for this type of thing but it would be better not to use that since (1) the document wouldn't be rendered and, (2) it would be useful for the user to inspect the rendered document and learn was caused the failure.
For deployment purposes (e.g., Connect), it would be good to have a function like
knit_fail(reason)
to allow for a document-level failures. One scenario might be an .Rmd file deployed as data validation checkpoint where if a particular validation failed,knit_fail()
could be invoked to cause failure at the very end. Then Connect could make use of thereason
text and react accordingly (e.g., cancel deploy).One might use
stop()
for this type of thing but it would be better not to use that since (1) the document wouldn't be rendered and, (2) it would be useful for the user to inspect the rendered document and learn was caused the failure.Part of #2230.
The text was updated successfully, but these errors were encountered: