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

RJournal doesn't like ^ or % or $ in R code chunks #70

Closed
njtierney opened this issue May 12, 2016 · 4 comments
Closed

RJournal doesn't like ^ or % or $ in R code chunks #70

njtierney opened this issue May 12, 2016 · 4 comments

Comments

@njtierney
Copy link

@njtierney njtierney commented May 12, 2016

Thanks for putting this package together, it's super cool!

I'm working on submitting an Article to the R Journal, and am using the R Journal template from rticles.

I've got it here on my github: https://github.com/njtierney/A-Simple-Guide-to-S3-Methods

When I render the article, I random sections of it render into text, and then the R comments get treated as first level headers. When I changed the R programming code from ^ to use ** instead, there were fewer problems, but it now seems that when I call something like x$residuals in the .Rmd, LaTeX has trouble parsing it, as well as %in%

This is particularly on pages 4, 5, and 6 of the PDF.

I'll probably just change the .tex file to get it to render well in the end, but just thought you guys would like to know!

@yihui
Copy link
Member

@yihui yihui commented May 12, 2016

Duplicate of #49 (we don't have a solution yet).

@njtierney
Copy link
Author

@njtierney njtierney commented May 12, 2016

oops! Sorry about duplicating the issue!

@yihui yihui closed this in 928d6cd Jul 3, 2018
@yihui
Copy link
Member

@yihui yihui commented Jul 3, 2018

Fixed. Please try devtools::install_github('rstudio/rticles'). Note that it will require Pandoc 2.2.1. You can use the Preview version of RStudio if you do not want to install Pandoc separately: https://www.rstudio.com/products/rstudio/download/preview/

@github-actions
Copy link

@github-actions github-actions bot commented Nov 2, 2020

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 Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants