Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: option to capture exact "console error" #349

Open
barboulotte opened this issue Mar 22, 2021 · 0 comments
Open

Feature: option to capture exact "console error" #349

barboulotte opened this issue Mar 22, 2021 · 0 comments

Comments

@barboulotte
Copy link

Related question on SO: https://stackoverflow.com/questions/66603676/capture-error-messages-as-character-string-in-r/66660202

See also r-lib/evaluate#101

Would it be possible to capture exact "console error":

5 5
#> Error: unexpected numeric constant in "5 5"

message(paste("Error:", pander::evals("5 5")[[1]]$msg$errors))
#> Error: Unexpected numeric constant at character 3 in line 1: ` 5 5`

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant