-
-
Notifications
You must be signed in to change notification settings - Fork 873
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
Issue with special characters in R code chunks #988
Comments
Confirmed and reported to r-lib/evaluate#49 Thanks! |
I have submitted a fix to evaluate, and you may test it by devtools::install_github('hadley/evaluate@bugfix/49-srcref') if you want. Or just wait for the next CRAN release. |
Version 0.6 of the evaluate package is on CRAN now. |
Upstream changes: Version 0.8.3 ------------------------------------------------------------------------------ * Added an argument `filename` to evaluate() and parse_all() (thanks, @flying-sheep, #58). Version 0.8 ------------------------------------------------------------------------------ * Changed package license to MIT. Version 0.7.2 ------------------------------------------------------------------------------ * replay() fails to replay certain objects such as NULL (#53). Version 0.7 ------------------------------------------------------------------------------ * R 3.0.2 is the minimal required version for this package now. Version 0.6 ------------------------------------------------------------------------------ * Plots are no longer recorded when the current graphical device has been changed, which may introduce issues like yihui/knitr#824. * `parse_all()` can parse R code that contains multibyte characters correctly now (#49, yihui/knitr#988)
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. |
It seems each special character "eats" one character at the beginning of a comment* in the same line
* more precisely: after the end of R statements in that line
knits to the following markdown:
In multiline statements, only the last line is affected:
becomes
The text was updated successfully, but these errors were encountered: