Skip to content

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

@barboulotte

Description

@barboulotte

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions