Skip to content

permit new error message (R-devel) - #659

Merged
MichaelChirico merged 6 commits into
masterfrom
fix/r-devel-test-error
Dec 4, 2020
Merged

MichaelChirico merged 6 commits into
masterfrom
fix/r-devel-test-error

Conversation

@AshesITR

@AshesITR AshesITR commented Dec 4, 2020 •

Copy link
Copy Markdown
Collaborator

Currently, CI builds on r-devel are failing because the parser error message for input \ changed from "unexpected input" to "unexpected end of line".

@MichaelChirico

Copy link
Copy Markdown
Collaborator

more robust would be to generate the error minimally with base R code only

@AshesITR

AshesITR commented Dec 4, 2020

Copy link
Copy Markdown
Collaborator Author

You mean via tryCatch(parse(text = "\\"), error = conditionMessage)?

Comment thread tests/testthat/test-error.R Outdated
# Error message changed in R-devel as of 2020/12
old_lang <- Sys.getenv("LANG")
Sys.setenv(LANG = "en")
on.exit(Sys.setenv(LANG = old_lang), add = TRUE)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another step further :)

Comment thread tests/testthat/test-error.R Resolved
@MichaelChirico
MichaelChirico merged commit 1166ca9 into master Dec 4, 2020
@MichaelChirico
MichaelChirico deleted the fix/r-devel-test-error branch December 4, 2020 18:52
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

Successfully merging this pull request may close these issues.

2 participants