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 · 3 comments

Comments

Projects
None yet
2 participants
@njtierney
Copy link

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

This comment has been minimized.

Copy link
Member

yihui commented May 12, 2016

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

@njtierney

This comment has been minimized.

Copy link

njtierney commented May 12, 2016

oops! Sorry about duplicating the issue!

@yihui yihui closed this in 928d6cd Jul 3, 2018

@yihui

This comment has been minimized.

Copy link
Member

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/

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