What happens when the input doesn't look like the pal expects? e.g. what if there's no expect_ in a call to a testthat pal? How would such checks be made available to extensions to implement?
What happens when output doesn't align with what the prompt specifies the format should be? i.e. if the roxygen pal supplies some text that isn't prefixed with a #'.
In these cases, I'm mostly inclined to just say that users ought to Undo, as the process of checking selections and streamed responses seems quite failure prone and it's not that painful to Undo unwanted output.
expect_
in a call to a testthat pal? How would such checks be made available to extensions to implement?#'
.In these cases, I'm mostly inclined to just say that users ought to Undo, as the process of checking selections and streamed responses seems quite failure prone and it's not that painful to Undo unwanted output.