Open hadley opened 8 months ago
Unfortunately I don't think we can do better here.
Though we could detect calls at top-level. The behaviour would then differ when called directly vs in a browser or in testthat or markdown.
The thing that makes me think we could do better is that it's the same appearance at the top level and in snapshot:
Code
foo(123)
Condition
Error:
! Error `123`
Created on 2023-11-09 with reprex v2.0.2.9000
Ideally this would be