Math not rendering
FranzEricSchneider opened this issue · comments
I'm on the ubuntu RStudio, which may make a difference. Noticed this first in e-stat02-probability, although that may not be where it first pops up. When knitting the R documents to view the pretty version, math looks like this:
It does render in the edit view, oddly enough:
But that doesn't apply for values in the middle of a paragraph, so those can be hard to match up with the equations.
@FranzEricSchneider this is super-weird. I tried knitting on my Mac and am seeing the same behavior. Some quick googling didn't turn up any answers.
A "solution" for now is to read these documents in edit view in RStudio. The next thing I'd try is filing an issue with the Rmarkdown people, or asking a question in the RStudio community: This one is (unfortunately) beyond me how to solve!
No worries, now you know :)
For reference, apparently choosing output: html_document
and output: pdf_document
renders math output, output: github_document
does not. That's a known behavior of RStudio, apparently its built-in markdown displayer doesn't render math, it just displays the raw markdown math.
https://community.rstudio.com/t/math-not-rendering-correctly-in-rstudio/85479
Thanks @FranzEricSchneider ! This is useful to know; a concrete step I could take would be to add a suggestion in the mathy exercises to render the document with output: html_document
for viewing purposes. I'll reopen this issue as a note-to-self to make that happen!
My first instinct would be to switch the output
setting before people run into it and have to do the extra step, but I'm guessing there are template issues or something where it's easier to have everything as the same setting.