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

Improve error message for issue with inline expression evaluation #2141

Closed
cderv opened this issue Jun 14, 2022 · 1 comment
Closed

Improve error message for issue with inline expression evaluation #2141

cderv opened this issue Jun 14, 2022 · 1 comment

Comments

@cderv
Copy link
Collaborator

cderv commented Jun 14, 2022

From rstudio/bookdown#1345

Current error looks like this

knitr::knit(text = "`r = 0.06`")
#> Quitting from lines 1-1 () 
#> Error in parse(text = code, keep.source = FALSE): <text>:1:1: '=' inattendu(e)
#> 1: =
#>     ^

Would be interesting to catch the issue specifically and then fail with a more helpful message on the cause.

Error message is from here: yihui/knitr@907184f/R/hooks.R#L14

@yihui yihui moved this to In Progress in R Markdown Team Projects Jun 14, 2022
@yihui yihui closed this as completed in 3cbf47f Jun 14, 2022
Repository owner moved this from In Progress to Done in R Markdown Team Projects Jun 14, 2022
@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant