I have an Rmd document with R code chunks in between enumerated latex environment. While Knitting the document, an error is encountered at the code evaluation: pSeq <- read.GenBank("NC_00111")
.
I am getting the following error with the code below:
\begin{enumerate}
```{r echo=FALSE, message=FALSE}
library('ape')
```
\textit{R functions: read.GenBank, ...}
\begin{enumerate}
\item the accession number NC\_00111. \newline
\textit{ only the sequence ...)}
```{r}
pSeq <- read.GenBank("NC_00111")
```
\item ...
\end{enumerate}
\end{enumerate}
Error message:
! Missing $ inserted. <inserted text>
$ l.158 chimpSeq <- read.GenBank("NC_
00111")
I am not sure how to overcome this error using the solution provided here. Are there any other workarounds or solutions?