I ran into problems while knit the pdf in Rstudio via Rmarkdown. I suppose it stems from too many digits for the value of quoted r variable outside the chunk of code.
---
title: "R Notebook"
output:
pdf_document: default
html_notebook: default
---
```{r}
x <- 11111111111111
```
Testing for `r x`.
Error is
! Missing $ inserted.
<inserted text>
$
l.133 Testing for 1.1111111imes
pandoc: Error producing PDF
Error: pandoc document conversion failed with error 43
Execution halted
Hope someone can help me out here.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…