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

Error Message bei Syntax Error #183

Open
hpb-htw opened this issue Mar 31, 2021 · 0 comments
Open

Error Message bei Syntax Error #183

hpb-htw opened this issue Mar 31, 2021 · 0 comments

Comments

@hpb-htw
Copy link

hpb-htw commented Mar 31, 2021

Lexer/Parser does not give as much information as GNU-R. For example GNU-R:

> parseCode <- function(code) tryCatch(parse(text=code), error=function(x) return(x));
> .r.code <- "mean(c(1, 2, %3))"
> parseCode(.r.code)
<simpleError in parse(text = code): <text>:1:14: unexpected input
1: mean(c(1, 2, %3))
                 ^>
>

Same code by FastR:

> parseCode <- function(code) tryCatch(parse(text=code), error=function(x) return(x));
> .r.code <- "mean(c(1, 2, %3))"
> parseCode(.r.code)
<simpleError in parse(text = code): parse error>
> 

FastR does not report line of error.
R-User might not expected exactly the same error message as GNU-R, but more information is better, at least where error happens.

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