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

better error handling #6

Open
mailund opened this issue Mar 2, 2018 · 0 comments
Open

better error handling #6

mailund opened this issue Mar 2, 2018 · 0 comments

Comments

@mailund
Copy link
Owner

mailund commented Mar 2, 2018


opened via imdone.io from a code comment on 096d52c0bf04844c454ceb514a58b67ecb4dcc34 by Thomas Mailund mailund@birc.au.dk


dynprog/R/parser.R

Lines 82 to 87 in 8191bdb

stopifnot(rlang::is_call(case)) # FIXME: better error handling
if (case[[1]] == "?") {
# NB: The order matters here!
condition <- case[[3]]
case <- case[[2]]
}

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

No branches or pull requests

1 participant